Module: Decidim::Surveys::Admin::ApplicationHelper
- Defined in:
- app/helpers/decidim/surveys/admin/application_helper.rb
Overview
Custom helpers, scoped to the surveys engine.
Instance Method Summary collapse
- #tabs_id_for_question(question) ⇒ Object
- #tabs_id_for_question_answer_option(question, answer_option) ⇒ Object
Instance Method Details
#tabs_id_for_question(question) ⇒ Object
9 10 11 |
# File 'app/helpers/decidim/surveys/admin/application_helper.rb', line 9 def tabs_id_for_question(question) "survey_question_#{question.to_param}" end |
#tabs_id_for_question_answer_option(question, answer_option) ⇒ Object
13 14 15 |
# File 'app/helpers/decidim/surveys/admin/application_helper.rb', line 13 def tabs_id_for_question_answer_option(question, answer_option) "survey_question_#{question.to_param}_answer_option_#{answer_option.to_param}" end |