Module: Decidim::Elections::Admin::AnswersHelper
- Defined in:
- app/helpers/decidim/elections/admin/answers_helper.rb
Overview
Custom helpers for answers on admin dashboard.
Instance Method Summary collapse
Instance Method Details
#selected_label_action_for(answer) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/helpers/decidim/elections/admin/answers_helper.rb', line 9 def selected_label_action_for(answer) if answer.selected t("answers.select.disable", scope: "decidim.elections.admin") else t("answers.select.enable", scope: "decidim.elections.admin") end end |