summaryrefslogtreecommitdiff
path: root/lib/gitlab/sherlock/file_sample.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/sherlock/file_sample.rb')
-rw-r--r--lib/gitlab/sherlock/file_sample.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/sherlock/file_sample.rb b/lib/gitlab/sherlock/file_sample.rb
index 604b6df12cc..5d10d8c4877 100644
--- a/lib/gitlab/sherlock/file_sample.rb
+++ b/lib/gitlab/sherlock/file_sample.rb
@@ -18,7 +18,7 @@ module Gitlab
end
def relative_path
- @relative_path ||= @file.gsub(%r{^#{Rails.root.to_s}/?}, '')
+ @relative_path ||= @file.gsub(%r{^#{Rails.root}/?}, '')
end
def to_param