Class: UseCase::ValidatorParent

Inherits:
Base
  • Object
show all
Defined in:
lib/usecasing/validator_parent.rb

Direct Known Subclasses

GroupValidator, Validator

Instance Method Summary collapse

Instance Method Details

#call_failure(status, message = nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/usecasing/validator_parent.rb', line 5

def call_failure(status, message = nil)
  if respond_to?(:failure!)
    failure!(status, message)
  else
    failure(status, message)
  end
end