Class: Serega::SeregaValidations::Attribute::CheckOptPreload
- Inherits:
-
Object
- Object
- Serega::SeregaValidations::Attribute::CheckOptPreload
- Defined in:
- lib/serega/validations/attribute/check_opt_preload.rb
Overview
Validator for attribute :preload option
Class Method Summary collapse
-
.call(opts) ⇒ void
Checks :preload option.
Class Method Details
.call(opts) ⇒ void
This method returns an undefined value.
Checks :preload option
19 20 21 22 23 24 |
# File 'lib/serega/validations/attribute/check_opt_preload.rb', line 19 def call(opts) return unless opts.key?(:preload) check_opt_preload(opts) check_usage_with_other_params(opts) end |