Returns a hash of attributes before typecasting and deserialization.
# File lib/active_record/attribute_methods/before_type_cast.rb, line 15 def attributes_before_type_cast Hash[attribute_names.map { |name| [name, read_attribute_before_type_cast(name)] }] end
# File lib/active_record/attribute_methods/before_type_cast.rb, line 10 def read_attribute_before_type_cast(attr_name) @attributes[attr_name] end