Class: Decidim::Debates::DebateForm

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

#categoryObject



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