Class: Serega::SeregaValidations::Attribute::CheckOptDelegate

Inherits:
Object
  • Object
show all
Defined in:
lib/serega/validations/attribute/check_opt_delegate.rb

Class Method Summary collapse

Class Method Details

.call(opts, block = nil) ⇒ Object



18
19
20
21
22
23
# File 'lib/serega/validations/attribute/check_opt_delegate.rb', line 18

def call(opts, block = nil)
  return unless opts.key?(:delegate)

  check_opt_delegate(opts)
  check_usage_with_other_params(opts, block)
end