提交 51253b2d 编写于 作者: B Bob Van Landuyt 提交者: Bob Van Landuyt

Simplify NotesFinder discussion query

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册