Skip to content
Snippets Groups Projects
Commit 51253b2d authored by Bob Van Landuyt's avatar Bob Van Landuyt Committed by Bob Van Landuyt :neckbeard:
Browse files

Simplify NotesFinder discussion query

parent 0267b838
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment