Commit 51253b2d authored by Bob Van Landuyt's avatar Bob Van Landuyt Committed by Bob Van Landuyt

Simplify NotesFinder discussion query

parent 0267b838
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment