gregbell/active_admin — pull request #2131 by gregbell (2013-04-22 00:31:17+00:00)
Title: Added better support for CanCan#accessible_by

Added an `action` optional argument to AuthorizationAdapter#scope_collection.
The controller passes in the action that is currently being performed so
that authorization adapters can correctly scope collections based on
different controller actions.

Also implemented it on the `CanCanAdapter` so that we offer full support
of the accessible_by functionality.