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

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

Parameters:

  • hook_name (Symbol)

    representing the name of the hook.

Returns:

  • (String)

    an HTML safe String



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