module ActiveAdmin::BatchActions::Controller

def selected_batch_action

def selected_batch_action
  return unless params[:batch_action].present?
  active_admin_config.batch_actions.select { |action| action.sym == params[:batch_action].to_sym }.first
end