diff options
author | George Claghorn <george@basecamp.com> | 2019-03-28 18:47:42 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2019-03-28 18:47:42 -0400 |
commit | 562f3a2d21de52872ccd9a2c8b734e30ec63430b (patch) | |
tree | 54b75b83739e9efa3d19a0f88ed3b1f5193fe367 /activestorage/lib/active_storage/analyzer.rb | |
parent | e3f5f1c936869b81b01835adc9c683e058edfeaf (diff) | |
download | rails-562f3a2d21de52872ccd9a2c8b734e30ec63430b.tar.gz rails-562f3a2d21de52872ccd9a2c8b734e30ec63430b.tar.bz2 rails-562f3a2d21de52872ccd9a2c8b734e30ec63430b.zip |
Add ActiveStorage::Service#open
Diffstat (limited to 'activestorage/lib/active_storage/analyzer.rb')
-rw-r--r-- | activestorage/lib/active_storage/analyzer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/analyzer.rb b/activestorage/lib/active_storage/analyzer.rb index caa25418a5..26414ffbc2 100644 --- a/activestorage/lib/active_storage/analyzer.rb +++ b/activestorage/lib/active_storage/analyzer.rb @@ -24,14 +24,14 @@ module ActiveStorage private # Downloads the blob to a tempfile on disk. Yields the tempfile. def download_blob_to_tempfile(&block) #:doc: - blob.open tempdir: tempdir, &block + blob.open tmpdir: tmpdir, &block end def logger #:doc: ActiveStorage.logger end - def tempdir #:doc: + def tmpdir #:doc: Dir.tmpdir end end |