Class: Decidim::Admin::CategoryForm

Inherits:
Form
  • Object
show all
Includes:
TranslatableAttributes
Defined in:
app/forms/decidim/admin/category_form.rb

Overview

A form object used to create categories from the admin dashboard.

Instance Method Summary collapse

Instance Method Details

#parent_categoriesObject



21
22
23
# File 'app/forms/decidim/admin/category_form.rb', line 21

def parent_categories
  @parent_categories ||= current_participatory_space.categories.first_class.where.not(id:)
end