class ValidatesWithTest::OtherValidatorThatAddsErrors

Public Instance Methods

validate(record) click to toggle source
# File activemodel/test/cases/validations/with_validation_test.rb, line 22
def validate(record)
  record.errors[:base] << OTHER_ERROR_MESSAGE
end