Exception: Decidim::Verifications::InvalidVerificationRoute

Inherits:
StandardError
  • Object
show all
Defined in:
lib/decidim/verifications/adapter.rb

Instance Method Summary collapse

Instance Method Details

#new(route:) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/decidim/verifications/adapter.rb', line 6

def new(route:)
  msg = <<~MSG
    You specified a direct handler but you are trying to use `#{route}`
    which is only available for multi-step authorization workflows. Change
    your workflow to define an engine with a `#{route}` route.
  MSG

  super(msg)
end