Class: Decidim::Forms::Admin::AnswerOptionForm

Inherits:
Decidim::Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
decidim-forms/app/forms/decidim/forms/admin/answer_option_form.rb

Overview

This class holds a Form to update answer options

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#to_paramObject


17
18
19
20
21
# File 'decidim-forms/app/forms/decidim/forms/admin/answer_option_form.rb', line 17

def to_param
  return id if id.present?

  "questionnaire-question-answer-option-id"
end