class ValidatesWithTest::ValidatorPerEachAttribute

Public Instance Methods

validate_each(record, attribute, value) click to toggle source
# File activemodel/test/cases/validations/with_validation_test.rb, line 41
def validate_each(record, attribute, value)
  record.errors[attribute] << "Value is #{value}"
end