mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
attributes_before_type_cast are just the value of @attributes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user