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

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
decidim-elections/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

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#electionObject


21
22
23
# File 'decidim-elections/app/forms/decidim/elections/admin/question_form.rb', line 21

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