提交 b3123348 编写于 作者: P Pratik Naik

Make Model.find(:all) use relations

上级 a3f3fab7
...@@ -649,7 +649,7 @@ def find(*args) ...@@ -649,7 +649,7 @@ def find(*args)
when :last when :last
find_last(options) find_last(options)
when :all when :all
find_every(options) construct_finder_arel_with_includes(options).all
else else
construct_finder_arel_with_includes(options).find(*args) construct_finder_arel_with_includes(options).find(*args)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册