Sha256: cdf223ba62c582fde66745784bf0f738f13b3f8a1729bbeeb924f036bc87712c
Contents?: true
Size: 555 Bytes
Versions: 7
Compression:
Stored size: 555 Bytes
Contents
module Hashme # Additional functionality for validation outside the standard ActiveModel stuff. module Validations extend ActiveSupport::Concern include ActiveModel::Validations module ClassMethods # 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. def validates_casted_attributes(*args) validates_with(CastedAttributeValidator, _merge_attributes(args)) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems