Used new tree and blob entity path helpers

This commit is contained in:
Luke "Jared" Bennett 2017-07-20 22:42:36 +01:00
parent 215313aac5
commit 9c5a8d43f8
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -12,6 +12,6 @@ class TreeEntity < Grape::Entity
end
expose :url do |tree|
namespace_project_tree_path(request.project.namespace, request.project, File.join(request.ref, tree.path))
project_tree_path(request.project, File.join(request.ref, tree.path))
end
end