From 4bdbf0a4a62e831d1ad9ccf7f77f7dd6f8fb2044 Mon Sep 17 00:00:00 2001 From: Drew Dara-Abrams Date: Thu, 6 Dec 2012 16:04:53 -0800 Subject: changing tense, since Rails 3.2 has been released --- guides/source/active_record_querying.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/active_record_querying.md') diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 9620270141..b22cc09951 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1222,7 +1222,7 @@ You can specify an exclamation point (`!`) on the end of the dynamic finders to If you want to find both by name and locked, you can chain these finders together by simply typing "`and`" between the fields. For example, `Client.find_by_first_name_and_locked("Ryan", true)`. -WARNING: Up to and including Rails 3.1, when the number of arguments passed to a dynamic finder method is lesser than the number of fields, say `Client.find_by_name_and_locked("Ryan")`, the behavior is to pass `nil` as the missing argument. This is **unintentional** and this behavior will be changed in Rails 3.2 to throw an `ArgumentError`. +WARNING: Up to and including Rails 3.1, when the number of arguments passed to a dynamic finder method is lesser than the number of fields, say `Client.find_by_name_and_locked("Ryan")`, the behavior is to pass `nil` as the missing argument. This is **unintentional** and this behavior has been changed in Rails 3.2 to throw an `ArgumentError`. Find or build a new object -------------------------- -- cgit v1.2.3