Commit a5d6bbe0 authored by Jack Weeden's avatar Jack Weeden

cattr_accessor removed from IssueObserver and MergeRequestObserver but not updated in fixtures

parent ac6c9128
...@@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do ...@@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
next unless user next unless user
user_id = user.id user_id = user.id
IssueObserver.current_user = user Thread.current[:current_user] = user
Issue.seed(:id, [{ Issue.seed(:id, [{
id: i, id: i,
......
...@@ -17,7 +17,8 @@ Gitlab::Seeder.quiet do ...@@ -17,7 +17,8 @@ Gitlab::Seeder.quiet do
next if branches.uniq.size < 2 next if branches.uniq.size < 2
user_id = user.id user_id = user.id
MergeRequestObserver.current_user = user Thread.current[:current_user] = user
MergeRequest.seed(:id, [{ MergeRequest.seed(:id, [{
id: i, id: i,
source_branch: branches.first, source_branch: branches.first,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment