Sha256: c19bafec79a35edf190e71b39c5dbdcb8e2166248d5fc588a1e2d9b21abc8bcb

Contents?: true

Size: 469 Bytes

Versions: 38

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Forms
    # Custom helpers, scoped to the forms engine.
    module ApplicationHelper
      # Show cell for selected models
      def show_represent_user_group?
        model_name = questionnaire_for.model_name.element

        permited_models.include?(model_name)
      end
      alias show_public_participation? show_represent_user_group?

      def permited_models
        %(meeting)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-forms-0.28.4 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.9 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.28.3 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.8 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.28.2 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.7 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.28.1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.6 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.26.10 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.26.9 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.28.0 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.5 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.28.0.rc5 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.28.0.rc4 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.26.8 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.4 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.3 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.26.7 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.26.5 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.27.2 app/helpers/decidim/forms/application_helper.rb