add axes, categories and subjects to admin panel

This commit is contained in:
João Geonizeli
2022-07-21 10:05:57 -03:00
parent 9c5b53679d
commit ed1ed73ed7
4 changed files with 10 additions and 1 deletions

3
app/admin/axes.rb Normal file
View File

@@ -0,0 +1,3 @@
ActiveAdmin.register Axis do
permit_params :name
end

3
app/admin/categories.rb Normal file
View File

@@ -0,0 +1,3 @@
ActiveAdmin.register Category do
permit_params :name
end

3
app/admin/subjects.rb Normal file
View File

@@ -0,0 +1,3 @@
ActiveAdmin.register Subject do
permit_params :name, :category_id, :axis_id
end

View File

@@ -134,7 +134,7 @@ ActiveAdmin.setup do |config|
# config.comments_order = 'created_at ASC' # config.comments_order = 'created_at ASC'
# #
# You can disable the menu item for the comments index page: # You can disable the menu item for the comments index page:
# config.comments_menu = false config.comments_menu = false
# #
# You can customize the comment menu: # You can customize the comment menu:
# config.comments_menu = { parent: 'Admin', priority: 1 } # config.comments_menu = { parent: 'Admin', priority: 1 }