mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
Remove unwanted fields from admin view, along with edit and new action
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
ActiveAdmin.register Device do
|
ActiveAdmin.register Device do
|
||||||
|
|
||||||
|
actions :all, except: [:edit,:new]
|
||||||
|
|
||||||
# See permitted parameters documentation:
|
# See permitted parameters documentation:
|
||||||
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
||||||
#
|
#
|
||||||
@@ -12,6 +14,13 @@ ActiveAdmin.register Device do
|
|||||||
# permitted << :other if resource.something?
|
# permitted << :other if resource.something?
|
||||||
# permitted
|
# permitted
|
||||||
# end
|
# end
|
||||||
|
index do
|
||||||
|
selectable_column
|
||||||
|
id_column
|
||||||
|
column "Model Name",:model
|
||||||
|
column :created_at
|
||||||
|
column :updated_at
|
||||||
|
actions
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user