Class: Serega::SeregaValidations::Attribute::CheckOptDelegate
- Inherits:
-
Object
- Object
- Serega::SeregaValidations::Attribute::CheckOptDelegate
- Defined in:
- lib/serega/validations/attribute/check_opt_delegate.rb
Overview
Attribute :delegate option validator
Class Method Summary collapse
-
.call(opts) ⇒ void
Checks attribute :delegate option It must have :to option and can have :optional allow_nil option.
Class Method Details
.call(opts) ⇒ void
This method returns an undefined value.
Checks attribute :delegate option It must have :to option and can have :optional allow_nil option
24 25 26 27 28 29 |
# File 'lib/serega/validations/attribute/check_opt_delegate.rb', line 24 def call(opts) return unless opts.key?(:delegate) check_opt_delegate(opts) check_usage_with_other_params(opts) end |