mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 18:24:58 +00:00
Add device tab to activeadmin
This commit is contained in:
17
app/admin/device.rb
Normal file
17
app/admin/device.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
ActiveAdmin.register Device do
|
||||
|
||||
# See permitted parameters documentation:
|
||||
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
||||
#
|
||||
# permit_params :list, :of, :attributes, :on, :model
|
||||
#
|
||||
# or
|
||||
#
|
||||
# permit_params do
|
||||
# permitted = [:permitted, :attributes]
|
||||
# permitted << :other if resource.something?
|
||||
# permitted
|
||||
# end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user