2014-08-06 14:47:47 +02:00
|
|
|
# Managing the new agenda moderators, from active_admin
|
2013-11-14 17:07:48 +01:00
|
|
|
ActiveAdmin.register AdminUser do
|
|
|
|
index do
|
|
|
|
column :email
|
|
|
|
column :current_sign_in_at
|
|
|
|
column :last_sign_in_at
|
|
|
|
column :sign_in_count
|
2014-07-18 13:49:03 +02:00
|
|
|
actions
|
2013-11-14 17:07:48 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
filter :email
|
|
|
|
|
|
|
|
form do |f|
|
2014-07-18 17:01:51 +02:00
|
|
|
f.inputs 'Admin Details' do
|
2013-11-14 17:07:48 +01:00
|
|
|
f.input :email
|
|
|
|
f.input :password
|
|
|
|
f.input :password_confirmation
|
|
|
|
end
|
|
|
|
f.actions
|
|
|
|
end
|
|
|
|
controller do
|
|
|
|
def permitted_params
|
2017-04-22 20:01:47 +02:00
|
|
|
params.permit admin_user: %i[email password password_confirmation]
|
2013-11-14 17:07:48 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|