Implement new download_chunk method
This commit is contained in:
parent
b0037d50c8
commit
03ee18483d
1 changed files with 6 additions and 0 deletions
|
@ -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) }
|
||||||
|
|
Loading…
Reference in a new issue