module Hashme::Validations::ClassMethods

Public Instance Methods

validates_casted_attributes(*args) click to toggle source

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.

# File lib/hashme/validations.rb, line 13
def validates_casted_attributes(*args)
  validates_with(CastedAttributeValidator, _merge_attributes(args))
end