diff --git a/app/models/note.rb b/app/models/note.rb index d0b30c5579176178f6f17430ecef59f86b3d6331..196512c4715379b3ddf3adf7b177a8033f4d42d4 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -61,7 +61,8 @@ class Note < ActiveRecord::Base scope :inc_author, ->{ includes(:author) } scope :inc_associations, -> do - includes(:author, :noteable, :updated_by, :project) + includes(:author, :noteable, :updated_by, + project: [:project_members, {group: [:group_members]}]) end serialize :st_diff