Rails Admin plugin to add a custom bulk delete action that plays nicely with objects that acts_as_paranoid
To enable rails_admin_bulk_paranoia_delete, add the following to your Gemfile
:
gem 'rails_admin_bulk_paranoia_delete', :git => 'https://github.com/tmesquita/rails_admin_bulk_paranoia_delete.git'
Add in your config/initializers/rails_admin.rb
initializer the configuration:
RailsAdmin.config do |config|
config.actions do
dashboard
index
new
export
history_index
bulk_delete
show
bulk_paranoia_delete # Add the bulk_paranoia_delete action
edit
delete
history_show
show_in_app
end
end
Submitting a Pull Request:
-
Fork the repository.
-
Create a topic branch.
-
Implement your feature or bug fix.
-
Add, commit, and push your changes.
-
Submit a pull request.
โ
This gem is released under the MIT license.