Class: Kwatable::Validator
- Inherits:
-
Kwalify::Validator
- Object
- Kwalify::Validator
- Kwatable::Validator
- Defined in:
- lib/kwatable/validator.rb
Instance Method Summary collapse
Instance Method Details
#validate_hook(value, rule, path, errors) ⇒ Object
:nodoc:
16 17 18 19 20 21 22 23 24 |
# File 'lib/kwatable/validator.rb', line 16 def validate_hook(value, rule, path, errors) # :nodoc: case rule.name when 'COLUMN' if value['cascade'] && !value['ref'] msg = "`cascade:' is available only with `ref:'." errors << Kwalify::ValidationError.new(msg, path) end end end |