Skip to content

Commit

Permalink
[admin] enable bulk delete for users
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed May 1, 2024
1 parent 5a897da commit 3613c61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/admin/user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ActiveAdmin.register User do
config.batch_actions = true

action_item :upload_csv, only: :index do
link_to I18n.t("active_admin.users.upload_from_csv"), action: "upload_csv"
end
Expand All @@ -15,6 +17,7 @@
end

index do
selectable_column
column do |user|
link_to image_tag(avatar_url(user, 24)), admin_user_path(user)
end
Expand Down
1 change: 0 additions & 1 deletion config/initializers/active_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
config.current_user_method = :current_user
config.logout_link_path = :destroy_user_session_path
config.logout_link_method = :delete
config.batch_actions = false
config.comments = false
config.namespace :admin do |admin|
admin.build_menu :utility_navigation do |menu|
Expand Down

0 comments on commit 3613c61

Please sign in to comment.