cattr_accessor removed from IssueObserver and MergeRequestObserver but not updated in fixtures
This commit is contained in:
parent
ac6c912860
commit
a5d6bbe0af
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
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,
|
||||||
|
|
Loading…
Reference in a new issue