Class: Decidim::Elections::Admin::QuestionForm

Inherits:
Form
  • Object
show all
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

#electionObject



19
20
21
# File 'app/forms/decidim/elections/admin/question_form.rb', line 19

def election
  @election ||= context[:election]
end