summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-10-14 16:30:19 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-10-14 16:30:19 -0400
commit9750de4943f044499982d3d0b57425525ce5edc9 (patch)
tree93a37536f175fc12e43d1c0bfec53382f8d481d6 /app/helpers
parenta3a80eac110fb9f195eaccd3afd8e8611d1924dc (diff)
downloadgitlab-ce-9750de4943f044499982d3d0b57425525ce5edc9.tar.gz
Simplify the `issues_sentence` helperrs-issues_sentence
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/merge_requests_helper.rb2
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)