Sha256: 489b3862091c922545a8d16321a9f4799fe1b7d180e49c58f90bbb77f24dc469

Contents?: true

Size: 724 Bytes

Versions: 40

Compression:

Stored size: 724 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # Custom helpers, scoped to the participatory processes engine.
    #
    module ApplicationHelper
      include Decidim::ResourceHelper

      # 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
      #
      # @param hook_name [Symbol] representing the name of the hook.
      #
      # @return [String] an HTML safe String
      def render_participatory_processes_hook(hook_name)
        Decidim::ParticipatoryProcesses.view_hooks.render(hook_name, deep_dup)
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.16.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.15.2 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.15.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.15.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.14.4 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.14.3 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.14.2 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.14.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.13.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.12.2 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.13.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.12.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.13.0.pre1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.12.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.11.2 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.12.0.pre app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.11.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.11.0.pre1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.10.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.10.0 app/helpers/decidim/participatory_processes/application_helper.rb