diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-02-27 09:38:12 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-03-13 08:27:51 +0100 |
commit | 51253b2dd0bb073d271ddcbd172f7c204d4639db (patch) | |
tree | 00184d87929d61f5bbf509e8792004681809f233 | |
parent | 0267b83898d604181e70c5ea8ac4a84108d2e6d6 (diff) | |
download | gitlab-ce-51253b2dd0bb073d271ddcbd172f7c204d4639db.tar.gz |
Simplify NotesFinder discussion query
-rw-r--r-- | app/finders/notes_finder.rb | 2 |
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 |