Class: Serega::SeregaValidations::Attribute::CheckOptMany
- Inherits:
-
Object
- Object
- Serega::SeregaValidations::Attribute::CheckOptMany
- Defined in:
- lib/serega/validations/attribute/check_opt_many.rb
Overview
Attribute ‘:many` option validator
Class Method Summary collapse
-
.call(opts) ⇒ void
Checks attribute :many option.
Class Method Details
.call(opts) ⇒ void
This method returns an undefined value.
Checks attribute :many option
20 21 22 23 24 25 |
# File 'lib/serega/validations/attribute/check_opt_many.rb', line 20 def call(opts) return unless opts.key?(:many) check_many_option_makes_sence(opts) Utils::CheckOptIsBool.call(opts, :many) end |