From fb3b514f3d4638c573cd23f483b658073f0b5994 Mon Sep 17 00:00:00 2001 From: Yedhu Krishnan Date: Sat, 17 Oct 2015 19:28:41 +0530 Subject: [PATCH] Add device tab to activeadmin --- app/admin/device.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/admin/device.rb diff --git a/app/admin/device.rb b/app/admin/device.rb new file mode 100644 index 0000000..52bd8bd --- /dev/null +++ b/app/admin/device.rb @@ -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