summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-15 10:41:09 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-15 12:05:01 +0200
commite5925d073ea09072790856da1569865d5c45e408 (patch)
tree91eeee3f230002dc97b6a7272d8a023814e1d31a /app/models/note.rb
parent9f5811116ce56afe8bd2e46d92523e7240670016 (diff)
downloadgitlab-ce-e5925d073ea09072790856da1569865d5c45e408.tar.gz
Renamed Note.inc_associations to with_associations
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 196512c4715..dc110f4dc35 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -60,7 +60,7 @@ class Note < ActiveRecord::Base
scope :inc_author_project, ->{ includes(:project, :author) }
scope :inc_author, ->{ includes(:author) }
- scope :inc_associations, -> do
+ scope :with_associations, -> do
includes(:author, :noteable, :updated_by,
project: [:project_members, {group: [:group_members]}])
end