From b31233485b2ec7be96279448f77c860b0e94279b Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sun, 27 Dec 2009 17:43:31 +0530 Subject: [PATCH] Make Model.find(:all) use relations --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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 -- GitLab