diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-06 16:16:29 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-06 16:16:29 +0000 |
commit | 8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47 (patch) | |
tree | 2a00f89e62559f843786a9101016dbce1e1ed8b7 /activerecord/lib/active_record | |
parent | 64003677b7063aabc2a943e75e56b48cae6b15f7 (diff) | |
download | rails-8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47.tar.gz rails-8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47.tar.bz2 rails-8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47.zip |
Fixed that that multiparameter assignment doesn't work with aggregations (closes #4620) [Lars Pind]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b91ebafee5..106432ed9e 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1988,7 +1988,7 @@ module ActiveRecord #:nodoc: def execute_callstack_for_multiparameter_attributes(callstack) errors = [] callstack.each do |name, values| - klass = (self.class.reflect_on_aggregation(name) || column_for_attribute(name)).klass + klass = (self.class.reflect_on_aggregation(name.to_sym) || column_for_attribute(name)).klass if values.empty? send(name + "=", nil) else |