Module: Decouplio::Const::Validations::Step

Defined in:
lib/decouplio/const/validations/step.rb

Constant Summary collapse

VALIDATION_ERROR_MESSAGE =
<<~ERROR_MESSAGE
  Next options are not allowed for "step":
  %s

  Details:
  %s

  Allowed options are:
  %s

  Please read the manual about allowed options here:
  %s
ERROR_MESSAGE
ALLOWED_OPTIONS_MESSAGE =
<<~ALLOWED_OPTIONS
  on_success: <step name OR :finish_him>
  on_failure: <step name OR :finish_him>
  finish_him: :on_success
  finish_him: :on_failure
  if: <instance method symbol>
  unless: <instance method symbol>
ALLOWED_OPTIONS
MANUAL_URL =
'https://stub.step.manual.url'
EXTRA_KEYS_ARE_NOT_ALLOWED =
'Please check if step option is allowed'
METHOD_NOT_DEFINED =
'step :%s'
CONTROVERSIAL_KEYS =
'"%s" option(s) is not allowed along with "%s" option(s)'