Module: BazaModels::Model::CustomValidations::ClassMethods
- Defined in:
- lib/baza_models/model/custom_validations.rb
Instance Attribute Summary collapse
-
#custom_validations ⇒ Object
readonly
Returns the value of attribute custom_validations.
Instance Method Summary collapse
Instance Attribute Details
#custom_validations ⇒ Object (readonly)
Returns the value of attribute custom_validations.
7 8 9 |
# File 'lib/baza_models/model/custom_validations.rb', line 7 def custom_validations @custom_validations end |
Instance Method Details
#validate(method_name) ⇒ Object
9 10 11 12 |
# File 'lib/baza_models/model/custom_validations.rb', line 9 def validate(method_name) @custom_validations ||= [] @custom_validations << method_name end |