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

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

Overview

This class holds a Form to update answer options

Instance Method Summary collapse

Instance Method Details

#to_paramObject



17
18
19
20
21
# File '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