Module: Decidim::Forms::ApplicationHelper

Defined in:
app/helpers/decidim/forms/application_helper.rb

Overview

Custom helpers, scoped to the forms engine.

Instance Method Summary collapse

Instance Method Details

#permitted_modelsObject



15
16
17
# File 'app/helpers/decidim/forms/application_helper.rb', line 15

def permitted_models
  %(meeting)
end

#show_represent_user_group?Boolean Also known as: show_public_participation?

Show cell for selected models

Returns:

  • (Boolean)


8
9
10
11
12
# File 'app/helpers/decidim/forms/application_helper.rb', line 8

def show_represent_user_group?
  model_name = questionnaire_for.model_name.element

  permitted_models.include?(model_name)
end