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.model

Loads a model configuration instance from the registry or registers
a new one if one is yet to be added.

First argument can be an instance of requested model, its class object,
its class name as a string or symbol or a RailsAdmin::AbstractModel
instance.

If a block is given it is evaluated in the context of configuration instance.

Returns given model's configuration

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-model-for-pr


# Commit to git

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


# 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-model-for-pr

hub pull-request


# Celebrate!