Namespace
- MODULE ActiveRecord::AttributeMethods::Serialization::ClassMethods
- CLASS ActiveRecord::AttributeMethods::Serialization::Attribute
Methods
- #
- A
- R
- T
Instance Public methods
_field_changed?(attr, old, value)
Link
attributes_before_type_cast()
Link
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 109 def attributes_before_type_cast super.dup.tap do |attributes| self.class.serialized_attributes.each_key do |key| if attributes.key?(key) attributes[key] = attributes[key].unserialized_value end end end end
read_attribute_before_type_cast(attr_name)
Link
type_cast_attribute_for_write(column, value)
Link