diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 30864d33ef6d06c1843a1b70deb61b0b84f93453..a73d5168d4ad9c2f00c7ca72e4e75e1138ba3220 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,3 +1,8 @@ +*SVN* + +* Fixed that symbols can be used on attribute assignment, like page.emails.create(:subject => data.subject, :body => data.body) + + *1.8.0* (7th March, 2005) * Added ActiveRecord::Base.colorize_logging to control whether to use colors in logs or not (on by default) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b198f0a6361c0948d3bf44fe572c8a0dcbee6b18..6fdab32f733bf6d83f0700422e16569f291f5730 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1012,6 +1012,7 @@ def []= (attr_name, value) # 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|