Class: Decidim::Admin::CategoryForm

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

Overview

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

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#parent_categoriesObject


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

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