Skip to content
Browse files

Make Model.find(:all) use relations

  • Loading branch information...
1 parent a3f3fab commit b31233485b2ec7be96279448f77c860b0e94279b @lifo lifo committed Dec 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -649,7 +649,7 @@ def find(*args)
when :last
find_last(options)
when :all
- find_every(options)
+ construct_finder_arel_with_includes(options).all
else
construct_finder_arel_with_includes(options).find(*args)
end

0 comments on commit b312334

Please sign in to comment.
Something went wrong with that request. Please try again.