class ActiveRecord::DynamicMatchers::Method

def valid?

def valid?
  attribute_names.all? { |name| model.columns_hash[name] || model.reflect_on_aggregation(name.to_sym) }
end