summaryrefslogtreecommitdiff
path: root/app/serializers/blob_entity.rb
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-20 22:42:36 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-20 22:42:36 +0100
commit9c5a8d43f81d343a8509e576b66df4dc0651c044 (patch)
tree426c7507b29a9868f8ff9d12c3715524f2379c73 /app/serializers/blob_entity.rb
parent215313aac5964fd160c39ec52789eab1b3a47409 (diff)
downloadgitlab-ce-9c5a8d43f81d343a8509e576b66df4dc0651c044.tar.gz
Used new tree and blob entity path helpers
Diffstat (limited to 'app/serializers/blob_entity.rb')
-rw-r--r--app/serializers/blob_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/blob_entity.rb b/app/serializers/blob_entity.rb
index e826d657030..56f173e5a27 100644
--- a/app/serializers/blob_entity.rb
+++ b/app/serializers/blob_entity.rb
@@ -12,6 +12,6 @@ class BlobEntity < Grape::Entity
end
expose :url do |blob|
- namespace_project_blob_path(request.project.namespace, request.project, File.join(request.ref, blob.path))
+ project_blob_path(request.project, File.join(request.ref, blob.path))
end
end