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

Repository#cache_method_output

Caches the supplied block both in a cache and in an instance variable.

The cache key and instance variable are named the same way as the value of
the `key` argument.

This method will return `nil` if the corresponding instance variable is also
set to `nil`. This ensures we don't keep yielding the block when it returns
`nil`.

key - The name of the key to cache the data in.
fallback - A value to fall back to in the event of a Git error.

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-Repository-cache_method_output-for-pr


# Commit to git

git add git commit -m "better docs for Repository#cache_method_output"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Repository-cache_method_output-for-pr

hub pull-request


# Celebrate!