mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
32 lines
549 B
Ruby
32 lines
549 B
Ruby
ActiveAdmin.register User do
|
|
permit_params :email, :password, :password_confirmation
|
|
|
|
controller do
|
|
defaults finder: :find_by_username
|
|
end
|
|
|
|
index do
|
|
selectable_column
|
|
id_column
|
|
column :email
|
|
column :current_sign_in_at
|
|
column :sign_in_count
|
|
column :created_at
|
|
actions
|
|
end
|
|
|
|
filter :email
|
|
filter :current_sign_in_at
|
|
filter :sign_in_count
|
|
filter :created_at
|
|
|
|
form do |f|
|
|
f.inputs do
|
|
f.input :email
|
|
f.input :password
|
|
f.input :password_confirmation
|
|
end
|
|
f.actions
|
|
end
|
|
end
|