class ActiveModel::AttributeSet

def to_hash

def to_hash
  keys.index_with { |name| self[name].value }
end