module ActiveRecord::AttributeMethods

def attributes_with_values(attribute_names)

def attributes_with_values(attribute_names)
  attribute_names.index_with { |name| @attributes[name] }
end