Implement new download_chunk method

This commit is contained in:
Frederic Merizen 2018-04-24 14:01:32 +02:00 committed by gregoirenovel
parent b0037d50c8
commit 03ee18483d

View file

@ -22,6 +22,12 @@ module ActiveStorage
end end
end end
def download_chunk(key, range)
instrument :download_chunk, key: key, range: range do
@adapter.session { |s| s.download(key, range: range) }
end
end
def delete(key) def delete(key)
instrument :delete, key: key do instrument :delete, key: key do
@adapter.session { |s| s.delete(key) } @adapter.session { |s| s.delete(key) }