summaryrefslogtreecommitdiff
path: root/app/models/epic.rb
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-12-01 10:21:05 +0100
committerJarka Kadlecova <jarka@gitlab.com>2017-12-06 19:16:22 +0100
commit0c2fdb1c342fa5eb64bb0ed02091af3c06b37c0e (patch)
treea488e21ef204801bf52521965cc9f82502f96155 /app/models/epic.rb
parent50eb125282ba83e71447161ee2add396fa5eef9b (diff)
downloadgitlab-ce-0c2fdb1c342fa5eb64bb0ed02091af3c06b37c0e.tar.gz
Refactor banzai to support referencing from group contextce-backport-3615
Diffstat (limited to 'app/models/epic.rb')
-rw-r--r--app/models/epic.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/models/epic.rb b/app/models/epic.rb
index 62898a02e2d..286b855de3f 100644
--- a/app/models/epic.rb
+++ b/app/models/epic.rb
@@ -1,7 +1,11 @@
# Placeholder class for model that is implemented in EE
-# It will reserve (ee#3853) '&' as a reference prefix, but the table does not exists in CE
+# It reserves '&' as a reference prefix, but the table does not exists in CE
class Epic < ActiveRecord::Base
- # TODO: this will be implemented as part of #3853
- def to_reference
+ def self.reference_prefix
+ '&'
+ end
+
+ def self.reference_prefix_escaped
+ '&amp;'
end
end