class ValidatesWithTest::ValidatorThatAddsErrors
Public Instance Methods
validate(record)
click to toggle source
# File activemodel/test/cases/validations/with_validation_test.rb, line 16 def validate(record) record.errors[:base] << ERROR_MESSAGE end