Class: Decidim::Debates::DebateForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Debates::DebateForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/debates/debate_form.rb
Overview
This class holds a Form to create/update debates from Decidim’s public views.
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
19 20 21 |
# File 'app/forms/decidim/debates/debate_form.rb', line 19 def category @category ||= current_component.categories.find_by(id: category_id) end |