diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-07 14:38:41 +0300 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-07 16:01:02 +0300 |
commit | 664e4c125e4c2e096fcf8fd7cd538462e6eec841 (patch) | |
tree | 2897aac13bf17663e45667bda9a97589b03dadc6 /app/helpers/merge_requests_helper.rb | |
parent | 3c89a788c795fba2b050a0af0d8261e302d8cded (diff) |
Avoid calculation of closes_issues.
We just need to get merge requests closes issues when
we’re going to show them
Diffstat (limited to 'app/helpers/merge_requests_helper.rb')
-rw-r--r-- | app/helpers/merge_requests_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index 1dd07a2a220..8ba42518401 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -55,6 +55,10 @@ module MergeRequestsHelper end.sort.to_sentence end + def mr_closes_issues + @mr_closes_issues ||= @merge_request.closes_issues + end + def mr_change_branches_path(merge_request) new_namespace_project_merge_request_path( @project.namespace, @project, |