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
- #permitted_models ⇒ Object
-
#show_represent_user_group? ⇒ Boolean
(also: #show_public_participation?)
Show cell for selected models.
Instance Method Details
#permitted_models ⇒ Object
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
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 |