class ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes

def matches?(method_name)

def matches?(method_name)
  attr_name = method_name.to_s.chomp("=")
  attributes.any? { |name| name == attr_name }
end