Commit 2b7b0ed9 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'nelbacha-master-patch-31121' into 'master'

Fix bug in rails cheat sheet for MR

See merge request gitlab-org/gitlab!43695
parents 4595a47d cef4760a
......@@ -525,8 +525,8 @@ conflicting_permanent_redirects.destroy_all
### Close a merge request properly (if merged but still marked as open)
```ruby
p = Project.find_by_full_path('')
m = project.merge_requests.find_by(iid: )
p = Project.find_by_full_path('<full/path/to/project>')
m = p.merge_requests.find_by(iid: <iid>)
u = User.find_by_username('')
MergeRequests::PostMergeService.new(p, u).execute(m)
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment