diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-26 16:30:07 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-26 16:30:07 -0400 |
commit | 3cb6a338466ca9b8e2a831cce306fc6d650231ed (patch) | |
tree | f48cbdcb6eb1da4835aa3fa2a3e3cc3c73620e10 /app/models/concerns/mentionable.rb | |
parent | 2c1bf71793963f53c0921325ced2c7ad44a5fe95 (diff) | |
download | gitlab-ce-3cb6a338466ca9b8e2a831cce306fc6d650231ed.tar.gz |
More SystemNoteService cleanuprs-to_reference
Diffstat (limited to 'app/models/concerns/mentionable.rb')
-rw-r--r-- | app/models/concerns/mentionable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/mentionable.rb b/app/models/concerns/mentionable.rb index 9b299889476..6f9f54d08cc 100644 --- a/app/models/concerns/mentionable.rb +++ b/app/models/concerns/mentionable.rb @@ -24,11 +24,11 @@ module Mentionable # # By default this will be the class name and the result of calling # `to_reference` on the object. - def gfm_reference + def gfm_reference(from_project = nil) # "MergeRequest" > "merge_request" > "Merge request" > "merge request" friendly_name = self.class.to_s.underscore.humanize.downcase - "#{friendly_name} #{to_reference}" + "#{friendly_name} #{to_reference(from_project)}" end # Construct a String that contains possible GFM references. |