lib/decidim/verifications/adapter.rb in decidim-verifications-0.28.4 vs lib/decidim/verifications/adapter.rb in decidim-verifications-0.29.0.rc1
- old
+ new
@@ -109,9 +109,18 @@
admin_engine.send(:root_path, redirect_params)
end
#
+ # Does this workflow manifest has an admin engine associated?
+ #
+ # Returns a boolean value.
+ #
+ def has_admin_root_path?
+ respond_to?("decidim_admin_#{name}")
+ end
+
+ #
# Authorize user to perform an action using the authorization handler action authorizer.
# Saves the action_authorizer object with its context for subsequent methods calls.
#
# authorization - The existing authorization record to be evaluated. Can be nil.
# options - A hash with options related only to the current authorization process.