diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-03 22:31:05 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-04 17:49:37 -0200 |
commit | 3e842559427746eb9051ce5ee3cd36caeff303a3 (patch) | |
tree | f399318ad28aca8af6d9a22aa965f2e038b95ac6 /activerecord | |
parent | 896e25e994e272a1cb485d9a850501b488992cb2 (diff) | |
download | rails-3e842559427746eb9051ce5ee3cd36caeff303a3.tar.gz rails-3e842559427746eb9051ce5ee3cd36caeff303a3.tar.bz2 rails-3e842559427746eb9051ce5ee3cd36caeff303a3.zip |
attributes_before_type_cast are just the value of @attributes
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/before_type_cast.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb index 23195b02f7..f7e5ef853f 100644 --- a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb +++ b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb @@ -13,7 +13,7 @@ module ActiveRecord # Returns a hash of attributes before typecasting and deserialization. def attributes_before_type_cast - Hash[attribute_names.map { |name| [name, read_attribute_before_type_cast(name)] }] + @attributes end private |