module ActiveAdmin::BatchActions::ResourceExtension

def batch_actions_enabled?

Returns:
  • (Boolean) - If batch actions are enabled for this resource
def batch_actions_enabled?
  # If the resource config has been set, use it. Otherwise
  # return the namespace setting
  @batch_actions_enabled.nil? ? namespace.batch_actions : @batch_actions_enabled
end