diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 11:42:22 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 11:42:50 +0100 |
commit | df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e (patch) | |
tree | c18946036ddff7f38c92a9c4f8bff99bc6da49c9 /activerecord/test/cases/associations/has_one_associations_test.rb | |
parent | a57b7842d0fcdcbcc567532d3a5c1f2628057a0d (diff) | |
download | rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.tar.gz rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.tar.bz2 rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.zip |
%s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other things
Diffstat (limited to 'activerecord/test/cases/associations/has_one_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_one_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 35c5d765a7..9a5719c298 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -25,7 +25,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase assert_queries(1) { assert_nil firm.account } assert_queries(0) { assert_nil firm.account } - firms = Firm.find(:all, :include => :account) + firms = Firm.scoped(:include => :account).all assert_queries(0) { firms.each(&:account) } end |