diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-06-03 22:15:06 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-06-03 22:15:06 +0000 |
commit | c5ec16e5833a4284a5ef07c7b09306df01e964f2 (patch) | |
tree | a66fbdb06fa06171d43c537f4494660816ad4fac /activerecord/CHANGELOG | |
parent | cb62f06dcf11f440d917cd4862c0786a213a5252 (diff) | |
download | rails-c5ec16e5833a4284a5ef07c7b09306df01e964f2.tar.gz rails-c5ec16e5833a4284a5ef07c7b09306df01e964f2.tar.bz2 rails-c5ec16e5833a4284a5ef07c7b09306df01e964f2.zip |
Added simple hash conditions to find that'll just convert hash to an AND-based condition string (closes #5143) [hcatlin@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index a04b81144e..71f3252f51 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,16 @@ *SVN* +* Added simple hash conditions to find that'll just convert hash to an AND-based condition string #5143 [hcatlin@gmail.com]. Example: + + Person.find(:all, :conditions => { :last_name => "Catlin", :status => 1 }, :limit => 2) + +...is the same as: + + Person.find(:all, :conditions => [ "last_name = ? and status = ?", "Catlin", 1 ], :limit => 2) + + This makes it easier to pass in the options from a form or otherwise outside. + + * Fixed issues with BLOB limits, charsets, and booleans for Firebird #5194, #5191, #5189 [kennethkunz@gmail.com] * Fixed usage of :limit and with_scope when the association in scope is a 1:m #5208 [alex@purefiction.net] |