edge badge
Methods
I
Instance Public methods
initialize_attributes(attributes, options = {})
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 100
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