Module: Hashme::Validations::ClassMethods
- Defined in:
- lib/hashme/validations.rb
Instance Method Summary collapse
-
#validates_casted_attributes(*args) ⇒ Object
Validates the associated casted model.
Instance Method Details
#validates_casted_attributes(*args) ⇒ Object
Validates the associated casted model. This method should not be used within your code as it is automatically included when a CastedModel is used inside the model.
13 14 15 |
# File 'lib/hashme/validations.rb', line 13 def validates_casted_attributes(*args) validates_with(CastedAttributeValidator, _merge_attributes(args)) end |