Class: Decidim::Debates::Admin::DebateForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Debates::Admin::DebateForm
- Includes:
- TranslatableAttributes
- Defined in:
- app/forms/decidim/debates/admin/debate_form.rb
Overview
This class holds a Form to create/update debates from Decidim’s admin panel.
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
26 27 28 29 |
# File 'app/forms/decidim/debates/admin/debate_form.rb', line 26 def category return unless current_component @category ||= current_component.categories.find_by(id: decidim_category_id) end |