diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-09 14:19:55 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-13 17:23:23 +0300 |
commit | 473b04a9f07ded15538af23f986ec618f5f8160c (patch) | |
tree | 647d8c74d1a86430cbefc0af1ce0af3cf359696f /app/models/event.rb | |
parent | a9924ee4d299b96da1e8dd58a6c9ed42b5dfacbd (diff) |
Include :author, :project, and :target in Event.with_associations
Signed-off-by: Rémy Coutable <remy@rymai.me>
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 c90fee95426..57f441187b4 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -39,7 +39,7 @@ class Event < ActiveRecord::Base where(project_id: projects).recent end - scope :with_associations, -> { includes(project: :namespace) } + scope :with_associations, -> { includes(:author, :project, :target, project: :namespace) } scope :for_milestone_id, ->(milestone_id) { where(target_type: "Milestone", target_id: milestone_id) } class << self |