Exception: Decidim::Verifications::MissingVerificationRoute

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

Instance Method Summary collapse

Constructor Details

#initialize(handler:, route:, action:) ⇒ MissingVerificationRoute

Returns a new instance of MissingVerificationRoute.



18
19
20
21
22
23
24
25
26
# File 'lib/decidim/verifications/adapter.rb', line 18

def initialize(handler:, route:, action:)
  msg = <<~MSG
    The authorization handler `#{handler}` does not define the route
    `#{route}`. If you want to enable `#{action}` for `#{handler}`, change
    your workflow to define an engine with a `#{route}` route.
  MSG

  super(msg)
end