summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-02-27 09:38:12 +0100
committerBob Van Landuyt <bob@gitlab.com>2017-03-13 08:27:51 +0100
commit51253b2dd0bb073d271ddcbd172f7c204d4639db (patch)
tree00184d87929d61f5bbf509e8792004681809f233
parent0267b83898d604181e70c5ea8ac4a84108d2e6d6 (diff)
downloadgitlab-ce-51253b2dd0bb073d271ddcbd172f7c204d4639db.tar.gz
Simplify NotesFinder discussion query
-rw-r--r--app/finders/notes_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb
index c93e6b05a67..6d0ff1798ce 100644
--- a/app/finders/notes_finder.rb
+++ b/app/finders/notes_finder.rb
@@ -108,6 +108,6 @@ class NotesFinder
end
def for_discussion(discussion_id)
- @notes.where(Note.arel_table[:discussion_id].eq(discussion_id))
+ @notes.where(discussion_id: discussion_id)
end
end