Module: Mongoid::Validatable::Macros
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/custom_fields/extensions/mongoid/validatable/macros.rb
Instance Method Summary collapse
-
#validates_collection_size_of(*args) ⇒ Object
Validates the size of a collection.
Instance Method Details
#validates_collection_size_of(*args) ⇒ Object
Validates the size of a collection.
21 22 23 |
# File 'lib/custom_fields/extensions/mongoid/validatable/macros.rb', line 21 def validates_collection_size_of(*args) validates_with(Mongoid::Validatable::CollectionSizeValidator, _merge_attributes(args)) end |