aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage/blob.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_storage/blob.rb')
-rw-r--r--lib/active_storage/blob.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_storage/blob.rb b/lib/active_storage/blob.rb
index 3336c4ebc3..1a15361747 100644
--- a/lib/active_storage/blob.rb
+++ b/lib/active_storage/blob.rb
@@ -56,8 +56,8 @@ class ActiveStorage::Blob < ActiveRecord::Base
service.upload(key, io, checksum: checksum)
end
- def download
- service.download key
+ def download(&block)
+ service.download key, &block
end