Module: Decidim::Solutions::ApplicationHelper
- Includes:
- RichTextEditorHelper
- Included in:
- SolutionCellsHelper
- Defined in:
- app/helpers/decidim/solutions/application_helper.rb
Overview
Custom helpers, scoped to the solutions engine.
Instance Method Summary collapse
Instance Method Details
#participatory_space_challenges ⇒ Object
20 21 22 23 24 |
# File 'app/helpers/decidim/solutions/application_helper.rb', line 20 def participatory_space_challenges challenge_component = current_participatory_space.components.find_by(manifest_name: "challenges") ::Decidim::Challenges::Challenge.where(decidim_component_id: challenge_component.id) end |
#text_editor_for_description(form) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/decidim/solutions/application_helper.rb', line 10 def text_editor_for_description(form) = { class: "js-hashtags", hashtaggable: true, value: form_presenter.description(extras: false).strip, } text_editor_for(form, :description, ) end |