提交 7d1b3d4e 编写于 作者: D Dmitriy Zaporozhets

Fix passign full user object instead of id to Event.create

上级 6579ba3e
......@@ -33,7 +33,7 @@ class ActivityObserver < BaseObserver
target_id: record.id,
target_type: record.class.name,
action: status,
author_id: current_user
author_id: current_user.id
)
end
end
......@@ -46,7 +46,7 @@ class MergeRequestObserver < ActivityObserver
target_id: record.id,
target_type: record.class.name,
action: status,
author_id: current_user
author_id: current_user.id
)
end
end
......@@ -8,7 +8,6 @@ describe ActivityObserver do
it { @event.project.should == project }
end
describe "Issue created" do
before do
Issue.observers.enable :activity_observer do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册