diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-01 12:58:45 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-01 12:58:45 +0100 |
commit | 62c14ba2edf9ac4b4bb1e8c46c0c60f1b6574909 (patch) | |
tree | 09df506c6905a490613a6fd31edc8004b3c15495 /app/models/concerns/referable.rb | |
parent | bd4ab21c07061e06166b08d86157e4004665ccbc (diff) | |
download | gitlab-ce-62c14ba2edf9ac4b4bb1e8c46c0c60f1b6574909.tar.gz |
Render commit reference using short sha, but include full sha in comment.
Diffstat (limited to 'app/models/concerns/referable.rb')
-rw-r--r-- | app/models/concerns/referable.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/referable.rb b/app/models/concerns/referable.rb index 16e4d054869..ce064f675ae 100644 --- a/app/models/concerns/referable.rb +++ b/app/models/concerns/referable.rb @@ -21,6 +21,10 @@ module Referable '' end + def reference_link_text(from_project = nil) + to_reference(from_project) + end + module ClassMethods # The character that prefixes the actual reference identifier # |