class ActiveModel::AttributeSet::YAMLEncoder
def decode(coder)
def decode(coder) if coder["attributes"] coder["attributes"] else attributes_hash = Hash[coder["concise_attributes"].map do |attr| if attr.type.nil? attr = attr.with_type(default_types[attr.name]) end [attr.name, attr] end] AttributeSet.new(attributes_hash) end end