aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-03 22:31:05 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-04 17:49:37 -0200
commit3e842559427746eb9051ce5ee3cd36caeff303a3 (patch)
treef399318ad28aca8af6d9a22aa965f2e038b95ac6 /activerecord/lib/active_record
parent896e25e994e272a1cb485d9a850501b488992cb2 (diff)
downloadrails-3e842559427746eb9051ce5ee3cd36caeff303a3.tar.gz
rails-3e842559427746eb9051ce5ee3cd36caeff303a3.tar.bz2
rails-3e842559427746eb9051ce5ee3cd36caeff303a3.zip
attributes_before_type_cast are just the value of @attributes
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/attribute_methods/before_type_cast.rb2
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