diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-27 17:43:31 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-27 17:43:31 +0530 |
commit | b31233485b2ec7be96279448f77c860b0e94279b (patch) | |
tree | ad5f488f9b38e887938044af1b295ae70dcdbba4 /activerecord | |
parent | a3f3fab7955a0874bd58d1d997e344bdde710628 (diff) | |
download | rails-b31233485b2ec7be96279448f77c860b0e94279b.tar.gz rails-b31233485b2ec7be96279448f77c860b0e94279b.tar.bz2 rails-b31233485b2ec7be96279448f77c860b0e94279b.zip |
Make Model.find(:all) use relations
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index c0b8e7e14f..73bd407f8f 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -649,7 +649,7 @@ module ActiveRecord #:nodoc: 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 |