Module: Decidim::ViewHooksHelper
- Included in:
- CardMetadataCell, ProfileCell, ProfileSidebarCell
- Defined in:
- decidim-core/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`.
11 12 13 |
# File 'decidim-core/app/helpers/decidim/view_hooks_helper.rb', line 11 def render_hook(hook_name) Decidim.view_hooks.render(hook_name, self) end |