module ActiveAdmin::BatchActions::Controller

def current_batch_action

def current_batch_action
  active_admin_config.batch_actions.detect { |action| action.sym.to_s == params[:batch_action] }
end