diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2017-12-22 20:02:48 +0300 |
---|---|---|
committer | Francisco Javier López <fjlopez@gitlab.com> | 2017-12-22 20:02:48 +0300 |
commit | 5d6fea1bb98355081fc94f299a4b01cd986c6bdb (patch) | |
tree | 2bb52180a75dc07cb4fad6b43c4b77e60c77080b /app/models/event.rb | |
parent | 77d190b4b4ebd78daa965eb4a2ed4a1e3579d956 (diff) |
Reverted fix https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15788
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index 6053594fab5..0997b056c6a 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -72,7 +72,7 @@ class Event < ActiveRecord::Base # We're using preload for "push_event_payload" as otherwise the association # is not always available (depending on the query being built). includes(:author, :project, project: :namespace) - .preload(:push_event_payload, target: :author) + .preload(:target, :push_event_payload) end scope :for_milestone_id, ->(milestone_id) { where(target_type: "Milestone", target_id: milestone_id) } |