class ValidationsContextTest::ValidatorThatAddsErrors

Public Instance Methods

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