diff options
author | George Claghorn <george@basecamp.com> | 2018-05-16 22:50:08 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-05-16 22:50:24 -0400 |
commit | ff3210556b89fdb3fe289117fa72ba3155231442 (patch) | |
tree | 8c6554764c1a311cc1fa8a34d8355619ef2026f3 /activestorage | |
parent | 373720bf232df9e5ee17d2c0338462bedcd25339 (diff) | |
download | rails-ff3210556b89fdb3fe289117fa72ba3155231442.tar.gz rails-ff3210556b89fdb3fe289117fa72ba3155231442.tar.bz2 rails-ff3210556b89fdb3fe289117fa72ba3155231442.zip |
Add missing block parameters
Diffstat (limited to 'activestorage')
-rw-r--r-- | activestorage/lib/active_storage/analyzer.rb | 2 | ||||
-rw-r--r-- | activestorage/lib/active_storage/previewer.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/analyzer.rb b/activestorage/lib/active_storage/analyzer.rb index 87e9e42aa2..8dcfb9d7bd 100644 --- a/activestorage/lib/active_storage/analyzer.rb +++ b/activestorage/lib/active_storage/analyzer.rb @@ -23,7 +23,7 @@ module ActiveStorage private # Downloads the blob to a tempfile on disk. Yields the tempfile. - def download_blob_to_tempfile #:doc: + def download_blob_to_tempfile(&block) #:doc: blob.open(&block) end diff --git a/activestorage/lib/active_storage/previewer.rb b/activestorage/lib/active_storage/previewer.rb index 2053ed4511..30d90493dc 100644 --- a/activestorage/lib/active_storage/previewer.rb +++ b/activestorage/lib/active_storage/previewer.rb @@ -27,7 +27,7 @@ module ActiveStorage private # Downloads the blob to a tempfile on disk. Yields the tempfile. - def download_blob_to_tempfile #:doc: + def download_blob_to_tempfile(&block) #:doc: blob.open(&block) end |