module ActiveAdminScopedCollectionActions::Controller
Constants
- COLLECTION_APPLIES
Public Instance Methods
scoped_collection_records()
click to toggle source
# File lib/active_admin_scoped_collection_actions/controller.rb, line 10 def scoped_collection_records selection = params.fetch(:collection_selection, []) selection.any? ? batch_action_collection(COLLECTION_APPLIES).where(resource_class.primary_key => selection) : batch_action_collection(COLLECTION_APPLIES) end