Class: Decidim::Debates::Admin::DebateForm

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

#categoryObject



26
27
28
29
# File 'app/forms/decidim/debates/admin/debate_form.rb', line 26

def category
  return unless current_feature
  @category ||= current_feature.categories.where(id: decidim_category_id).first
end