rails_admin

https://github.com/railsadminteam/rails_admin

Ruby

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data

RailsAdmin::Extensions::CanCan::AuthorizationAdapter#query

This is called when needing to scope a database query. It is called within the list
and bulk_delete/destroy actions and should return a scope which limits the records
to those which the user can perform the given action on.

Source | Google | Stack overflow

Edit

git clone [email protected]:railsadminteam/rails_admin.git

cd rails_admin

open lib/rails_admin/extensions/cancan/authorization_adapter.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RailsAdmin--Extensions--CanCan--AuthorizationAdapter-query-for-pr


# Commit to git

git add lib/rails_admin/extensions/cancan/authorization_adapter.rbgit commit -m "better docs for RailsAdmin::Extensions::CanCan::AuthorizationAdapter#query"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-RailsAdmin--Extensions--CanCan--AuthorizationAdapter-query-for-pr

hub pull-request


# Celebrate!