summaryrefslogtreecommitdiff
path: root/app/models/milestone.rb
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-12-19 19:12:19 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-12-21 10:50:24 +0800
commit467337fa118ad0f04f93ba196a2cfbe178ccf74c (patch)
treee38ecb5995fa0113132cdc166251e5fe828485cf /app/models/milestone.rb
parent62d250ff666770f9807eec2199a7b208ea8b518a (diff)
downloadgitlab-ce-467337fa118ad0f04f93ba196a2cfbe178ccf74c.tar.gz
Add % prefix to milestone reference link text
Also update banzai tests to use reference_link_text
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r--app/models/milestone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb
index 3cc8e2c44bb..6dc0fca68e6 100644
--- a/app/models/milestone.rb
+++ b/app/models/milestone.rb
@@ -212,7 +212,7 @@ class Milestone < ActiveRecord::Base
end
def reference_link_text(from = nil)
- self.title
+ self.class.reference_prefix + self.title
end
def milestoneish_ids