module ActiveRecord::AttributeMethods::Serialization::Behavior::ClassMethods
def initialize_attributes(attributes, options = {})
def initialize_attributes(attributes, options = {}) serialized = (options.delete(:serialized) { true }) ? :serialized : :unserialized super(attributes, options) serialized_attributes.each do |key, coder| if attributes.key?(key) attributes[key] = Attribute.new(coder, attributes[key], serialized) end end attributes end