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
|
|
|
|
params.permit admin_user: [:email, :password, :password_confirmation]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|