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

DeclarativePolicy.class_for_class

This method is heavily cached because there are a lot of anonymous
modules in play in a typical rails app, and #name performs quite
slowly for anonymous classes and modules.

See https://bugs.ruby-lang.org/issues/11119

if the above bug is resolved, this caching could likely be removed.

Source | Google | Stack overflow

Edit

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

cd rails_admin

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-DeclarativePolicy-class_for_class-for-pr


# Commit to git

git add git commit -m "better docs for DeclarativePolicy.class_for_class"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-DeclarativePolicy-class_for_class-for-pr

hub pull-request


# Celebrate!