diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-11-22 16:20:35 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-11-23 14:59:14 +0300 |
commit | e826c5d0917a7fe2225fb6ba0862bc56c1ef3fc2 (patch) | |
tree | e3e140a141541109d6cd23d8a36899ea57a20298 /app/models/snippet.rb | |
parent | 6369db0196ec7b6e288b16382c95243424a59b62 (diff) |
Fix link text from group context
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 9533aa7f555..2a5f07a15c4 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -75,11 +75,11 @@ class Snippet < ActiveRecord::Base @link_reference_pattern ||= super("snippets", /(?<snippet>\d+)/) end - def to_reference(from_project = nil, full: false) + def to_reference(from = nil, full: false) reference = "#{self.class.reference_prefix}#{id}" if project.present? - "#{project.to_reference(from_project, full: full)}#{reference}" + "#{project.to_reference(from, full: full)}#{reference}" else reference end |