diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-10 14:44:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-10 14:44:01 +0000 |
commit | 2bfaa055955ddc27aca97039a734c265adba6ed8 (patch) | |
tree | 158bff4731808f60c237b0c132cc14e03aa10d26 /activerecord/lib | |
parent | ef214ecc40f34006f88fc4b636dc3457f76deba6 (diff) | |
download | rails-2bfaa055955ddc27aca97039a734c265adba6ed8.tar.gz rails-2bfaa055955ddc27aca97039a734c265adba6ed8.tar.bz2 rails-2bfaa055955ddc27aca97039a734c265adba6ed8.zip |
Fixed that symbols can be used on attribute assignment, like page.emails.create(:subject => data.subject, :body => data.body)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b198f0a636..6fdab32f73 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1012,6 +1012,7 @@ module ActiveRecord #:nodoc: # attributes not included in that won't be allowed to be mass-assigned. def attributes=(attributes) return if attributes.nil? + attributes.stringify_keys! multi_parameter_attributes = [] remove_attributes_protected_from_mass_assignment(attributes).each do |k, v| |