From 959f362ac483bb12dab7d0207d973f1ebadcb033 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 2 Jan 2005 13:51:00 +0000 Subject: Added find_all style to the new dynamic finders git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/CHANGELOG') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index eee602faf2..4234e4cb1d 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -10,6 +10,10 @@ Person.find_first(["user_name = ? AND password = ?", user_name, password]), you just do Person.find_by_user_name_and_password(user_name, password). + While primarily a construct for easier find_firsts, it can also be used as a construct for find_all by using calls like + Payment.find_all_by_amount(50) that is turned into Payment.find_all(["amount = ?", 50]). This is something not as equally useful, + though, as it's not possible to specify the order in which the objects are returned. + * Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [bitsweat] * Added a db2 adapter that only depends on the Ruby/DB2 bindings (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt] -- cgit v1.2.3