class ValidationsContextTest::AnotherValidatorThatAddsErrors

Public Instance Methods

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