class ModelValidator::ApplicationRecordNotFound
ApplicationRecord is the base class used to loop up for all models to validate. So this class is mandatory for ModelValidator
to work well.
Public Instance Methods
message()
click to toggle source
# 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