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 public views.

Instance Method Summary collapse

Instance Method Details

#categoryObject



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