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.23.6 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.5 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.4 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.3 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.2 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.1.rc1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.23.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.22.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.21.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.20.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.20.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.19.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.18.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.19.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.17.2 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.18.0 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.17.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.16.1 app/helpers/decidim/participatory_processes/application_helper.rb
decidim-participatory_processes-0.17.0 app/helpers/decidim/participatory_processes/application_helper.rb