diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-22 09:47:40 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-22 10:00:23 -0700 |
commit | d692e6be3091dd114afa0cce2778787d3af93e83 (patch) | |
tree | 329c241653fdfd2e80ffc700c6da0247be1ae5e7 /activerecord/lib | |
parent | ebf9820f7eb83476d200c71915dd0e8a056bcbab (diff) | |
download | rails-d692e6be3091dd114afa0cce2778787d3af93e83.tar.gz rails-d692e6be3091dd114afa0cce2778787d3af93e83.tar.bz2 rails-d692e6be3091dd114afa0cce2778787d3af93e83.zip |
Restore HWIA#stringify_keys! and update changelog
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index fd24dcddc3..2d7cfad80d 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1844,8 +1844,7 @@ module ActiveRecord #:nodoc: # user.is_admin? # => true def attributes=(new_attributes, guard_protected_attributes = true) return if new_attributes.nil? - attributes = new_attributes.dup - attributes.stringify_keys! + attributes = new_attributes.stringify_keys multi_parameter_attributes = [] attributes = remove_attributes_protected_from_mass_assignment(attributes) if guard_protected_attributes |