Class: Decidim::Elections::Admin::QuestionForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Elections::Admin::QuestionForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/elections/admin/question_form.rb
Overview
This class holds a Form to create/update questions from Decidim’s admin panel.
Instance Method Summary collapse
Instance Method Details
#election ⇒ Object
19 20 21 |
# File 'app/forms/decidim/elections/admin/question_form.rb', line 19 def election @election ||= context[:election] end |