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, block = nil) ⇒ void
Checks attribute :delegate option It must have :to option and can have :optional allow_nil option.
Class Method Details
.call(opts, block = nil) ⇒ void
This method returns an undefined value.
Checks attribute :delegate option It must have :to option and can have :optional allow_nil option
21 22 23 24 25 26 |
# File 'lib/serega/validations/attribute/check_opt_delegate.rb', line 21 def call(opts, block = nil) return unless opts.key?(:delegate) check_opt_delegate(opts) check_usage_with_other_params(opts, block) end |