提交 51c53e19 编写于 作者: A Andrew White 提交者: GitHub

Merge pull request #26379 from kamipo/remove_unnecessary_query_scope

Remove unnecessary `query_scope`
......@@ -28,10 +28,6 @@ def scope
end
def records_for(ids)
query_scope(ids)
end
def query_scope(ids)
scope.where(association_key_name => ids)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册