Skip to content

Commit

Permalink
Add :bulkable parameter to RailsAdmin::MainController#bulk_action (
Browse files Browse the repository at this point in the history
…#3407)

Co-authored-by: Mitsuhiro Shibuya <[email protected]>
  • Loading branch information
Art3606 and mshibuya authored Jan 22, 2022
1 parent 44451f2 commit 7cbdddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/rails_admin/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MainController < RailsAdmin::ApplicationController

def bulk_action
get_model
process(params[:bulk_action]) if params[:bulk_action].in?(RailsAdmin::Config::Actions.all(controller: self, abstract_model: @abstract_model).select(&:bulkable?).collect(&:route_fragment))
process(params[:bulk_action]) if params[:bulk_action].in?(RailsAdmin::Config::Actions.all(:bulkable, controller: self, abstract_model: @abstract_model).collect(&:route_fragment))
end

def list_entries(model_config = @model_config, auth_scope_key = :index, additional_scope = get_association_scope_from_params, pagination = !(params[:associated_collection] || params[:all] || params[:bulk_ids]))
Expand Down

0 comments on commit 7cbdddd

Please sign in to comment.