Module: Decidim::ViewHooksHelper
- Included in:
- ProfileSidebarCell
- Defined in:
- app/helpers/decidim/view_hooks_helper.rb
Overview
This module includes helpers to manage view hooks in layout
Instance Method Summary collapse
-
#render_hook(hook_name) ⇒ String
Public: Renders all hooks registered as ‘hook_name`.
Instance Method Details
#render_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
14 15 16 |
# File 'app/helpers/decidim/view_hooks_helper.rb', line 14 def render_hook(hook_name) Decidim.view_hooks.render(hook_name, deep_dup) end |