From df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 27 Apr 2012 11:42:22 +0100 Subject: %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other things --- activerecord/test/cases/modules_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases/modules_test.rb') diff --git a/activerecord/test/cases/modules_test.rb b/activerecord/test/cases/modules_test.rb index aee8a42e91..76fc975a27 100644 --- a/activerecord/test/cases/modules_test.rb +++ b/activerecord/test/cases/modules_test.rb @@ -39,7 +39,7 @@ class ModulesTest < ActiveRecord::TestCase end def test_associations_spanning_cross_modules - account = MyApplication::Billing::Account.find(:first, :order => 'id') + account = MyApplication::Billing::Account.scoped(:order => 'id').first assert_kind_of MyApplication::Business::Firm, account.firm assert_kind_of MyApplication::Billing::Firm, account.qualified_billing_firm assert_kind_of MyApplication::Billing::Firm, account.unqualified_billing_firm -- cgit v1.2.3