Class: Decidim::Admin::CategoryForm
- Inherits:
-
Form
- Object
- Form
- Decidim::Admin::CategoryForm
- 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_categories ⇒ Object
22 23 24 |
# File '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 |