Module: Decidim::ParticipatoryProcesses::ApplicationHelper
- Includes:
- ResourceHelper
- Defined in:
- app/helpers/decidim/participatory_processes/application_helper.rb
Overview
Custom helpers, scoped to the participatory processes engine.
Instance Method Summary collapse
-
#render_participatory_processes_hook(hook_name) ⇒ String
Public: Renders all hooks registered as ‘hook_name`.
Instance Method Details
#render_participatory_processes_hook(hook_name) ⇒ String
Public: Renders all hooks registered as ‘hook_name`.
Note: We're passing a deep copy of the view context to allow
us to extend it without polluting the original view context
18 19 20 |
# File 'app/helpers/decidim/participatory_processes/application_helper.rb', line 18 def render_participatory_processes_hook(hook_name) Decidim::ParticipatoryProcesses.view_hooks.render(hook_name, deep_dup) end |