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 admin panel.
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
19 20 21 22 |
# File 'app/forms/decidim/debates/debate_form.rb', line 19 def category return unless current_feature @category ||= current_feature.categories.where(id: category_id).first end |