attributes_before_type_cast are just the value of @attributes

This commit is contained in:
Santiago Pastorino
2010-12-03 22:31:05 -02:00
parent 896e25e994
commit 3e84255942

View File

@@ -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