diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-10-14 23:30:19 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-10-14 23:30:19 +0300 |
commit | 9750de4943f044499982d3d0b57425525ce5edc9 (patch) | |
tree | 93a37536f175fc12e43d1c0bfec53382f8d481d6 /app/helpers/merge_requests_helper.rb | |
parent | a3a80eac110fb9f195eaccd3afd8e8611d1924dc (diff) |
Simplify the `issues_sentence` helper
Diffstat (limited to 'app/helpers/merge_requests_helper.rb')
-rw-r--r-- | app/helpers/merge_requests_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index 81773e7afcf..728d877ace2 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -47,7 +47,7 @@ module MergeRequestsHelper end def issues_sentence(issues) - issues.map { |i| "##{i.iid}" }.to_sentence + issues.map(&:to_reference).to_sentence end def mr_change_branches_path(merge_request) |