class ActiveModel::Validations::AcceptanceValidator
def validate_each(record, attribute, value)
def validate_each(record, attribute, value) unless acceptable_option?(value) record.errors.add(attribute, :accepted, **options.except(:accept, :allow_nil)) end end