cattr_accessor removed from IssueObserver and MergeRequestObserver but not updated in fixtures

This commit is contained in:
Jack Weeden 2013-06-24 14:21:46 +01:00
parent ac6c912860
commit a5d6bbe0af
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
next unless user
user_id = user.id
IssueObserver.current_user = user
Thread.current[:current_user] = user
Issue.seed(:id, [{
id: i,

View file

@ -17,7 +17,8 @@ Gitlab::Seeder.quiet do
next if branches.uniq.size < 2
user_id = user.id
MergeRequestObserver.current_user = user
Thread.current[:current_user] = user
MergeRequest.seed(:id, [{
id: i,
source_branch: branches.first,