lib/decidim/verifications/adapter.rb in decidim-verifications-0.21.0 vs lib/decidim/verifications/adapter.rb in decidim-verifications-0.22.0
- old
+ new
@@ -62,9 +62,21 @@
main_engine.send(:edit_authorization_path, redirect_params(redirect_url: redirect_url))
end
#
+ # In the case of renewable authorizations, route to renew an authorization
+ # process.
+ #
+ def renew_path(redirect_url: nil)
+ if manifest.type == "direct"
+ decidim_verifications.renew_authorizations_path(redirect_params(handler: name, redirect_url: redirect_url))
+ else
+ main_engine.send(:renew_authorization_path, redirect_params(redirect_url: redirect_url))
+ end
+ end
+
+ #
# Administrational entry point for the verification engine
#
def admin_root_path
raise InvalidDirectVerificationRoute.new(route: "admin_route_path") if manifest.type == "direct"