Sha256: 6d505014968fbffba2b9c2eb66b770fc49d214b20ca687412279ba6a7924a1ca

Contents?: true

Size: 403 Bytes

Versions: 22

Compression:

Stored size: 403 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

      def permited_models
        %(meeting)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
decidim-forms-0.24.3 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.6 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.24.2 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.5 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.24.1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.24.0 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.24.0.rc2 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.4 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.24.0.rc1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.3 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.2 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.1.rc1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.23.0 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.22.0 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.21.0 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.20.1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.20.0 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.19.1 app/helpers/decidim/forms/application_helper.rb
decidim-forms-0.18.1 app/helpers/decidim/forms/application_helper.rb