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::Config.authorize_with

Setup authorization to be run as a before filter
This is run inside the controller instance so you can setup any authorization you need to.

By default, there is no authorization.

To use an authorization adapter, pass the name of the adapter. For example,
to use with CanCan[https://github.com/ryanb/cancan], pass it like this.

See the wiki[https://github.com/sferik/rails_admin/wiki] for more on authorization.

Source | Google | Stack overflow

Edit

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

cd rails_admin

open lib/rails_admin/config.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RailsAdmin--Config-authorize_with-for-pr


# Commit to git

git add lib/rails_admin/config.rbgit commit -m "better docs for RailsAdmin::Config.authorize_with"


# 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--Config-authorize_with-for-pr

hub pull-request


# Celebrate!