Source: show | on GitHub
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 93 def read_attribute_before_type_cast(attr_name) if serialized_attributes.include?(attr_name) super.unserialized_value else super end end
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 85 def type_cast_attribute_for_write(column, value) if column && coder = self.class.serialized_attributes[column.name] Attribute.new(coder, value, :unserialized) else super end end