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
MergeRequest#merge_request_diff
This is the same as latest_merge_request_diff unless: 1. There are arguments - in which case we might be trying to force-reload. 2. This association is already loaded. 3. The latest diff does not exist. The second one in particular is important - MergeRequestDiff#merge_request is the inverse of MergeRequest#merge_request_diff, which means it may not be the latest diff, because we could have loaded any diff from this particular MR. If we haven't already loaded a diff, then it's fine to load the latest.
Edit
git clone [email protected]:railsadminteam/rails_admin.git
cd rails_admin
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MergeRequest-merge_request_diff-for-pr
# Commit to gitgit add git commit -m "better docs for MergeRequest#merge_request_diff"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MergeRequest-merge_request_diff-for-pr
hub pull-request
# Celebrate!