Exception: ModelValidator::ApplicationRecordNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/model_validator/validator.rb

Overview

ApplicationRecord is the base class used to loop up for all models to validate. So this class is mandatory for ModelValidator to work well.

Instance Method Summary collapse

Instance Method Details

#messageObject



9
10
11
12
13
14
15
# File 'lib/model_validator/validator.rb', line 9

def message
  <<~MSG
    ApplicationRecord not found.
    model_validator requires that all models extends a super class ApplicationRecord.
    This is expected in a rails application since rails 5.0.
  MSG
end