activeadmin-plugins / active_admin_scoped_collection_actions

:muscle: Plugin for ActiveAdmin. Provides batch Update and Delete for scoped_collection (Filters + Scope) across all pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show sidebar without active filteres

workgena opened this issue · comments

Allow users to perform actions with absolutely all records.
It means show sidebar without active filters or scope.

It should be configurable.

config.scoped_collection_actions_always = true

would be better just

config.scoped_collection_actions_conditions =  -> { true }

if not overrided used default which is

config.scoped_collection_actions_conditions = -> {  (params[:q] || params[:scope]) && active_admin_config.scoped_collection_actions.any? }