27 lines
531 B
Ruby
27 lines
531 B
Ruby
# Managing the new agenda moderators, from active_admin
|
|
ActiveAdmin.register AdminUser do
|
|
index do
|
|
column :email
|
|
column :current_sign_in_at
|
|
column :last_sign_in_at
|
|
column :sign_in_count
|
|
actions
|
|
end
|
|
|
|
filter :email
|
|
|
|
form do |f|
|
|
f.inputs 'Admin Details' do
|
|
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
|