mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-13 14:44:59 +00:00
Add latest changes from gitlab-org/gitlab@17-0-stable-ee
This commit is contained in:
@ -14,7 +14,8 @@ module Gitlab
|
||||
end
|
||||
|
||||
def lfs_download_object
|
||||
LfsDownloadObject.new(oid: lfs_object.oid, size: lfs_object.size, link: lfs_object.link)
|
||||
LfsDownloadObject.new(oid: lfs_object.oid, size: lfs_object.size, link: lfs_object.link,
|
||||
headers: lfs_object.headers)
|
||||
end
|
||||
|
||||
def execute
|
||||
|
@ -6,14 +6,15 @@ module Gitlab
|
||||
class LfsObject
|
||||
include Representable
|
||||
|
||||
expose_attribute :oid, :link, :size
|
||||
expose_attribute :oid, :link, :size, :headers
|
||||
|
||||
# Builds a lfs_object
|
||||
def self.from_api_response(lfs_object, additional_data = {})
|
||||
new(
|
||||
oid: lfs_object.oid,
|
||||
link: lfs_object.link,
|
||||
size: lfs_object.size
|
||||
size: lfs_object.size,
|
||||
headers: lfs_object.headers
|
||||
)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user