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