aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2017-11-30 23:54:03 -0500
committerGeorge Claghorn <george@basecamp.com>2017-11-30 23:54:03 -0500
commitd041a1dcbaced9f44ed976a48312c9f492fffe5e (patch)
tree4c667210dd02c0194c24a851e8675fd579aedd5d /activestorage/lib
parent0dc3b6535dfb8127f568bb4abc2fb09118ce4b96 (diff)
downloadrails-d041a1dcbaced9f44ed976a48312c9f492fffe5e.tar.gz
rails-d041a1dcbaced9f44ed976a48312c9f492fffe5e.tar.bz2
rails-d041a1dcbaced9f44ed976a48312c9f492fffe5e.zip
Add ActiveStorage::Previewer#logger to match ActiveStorage::Analyzer#logger
Diffstat (limited to 'activestorage/lib')
-rw-r--r--activestorage/lib/active_storage/previewer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/previewer.rb b/activestorage/lib/active_storage/previewer.rb
index ed75bae3b5..3d485988e9 100644
--- a/activestorage/lib/active_storage/previewer.rb
+++ b/activestorage/lib/active_storage/previewer.rb
@@ -54,5 +54,9 @@ module ActiveStorage
IO.popen(argv) { |out| IO.copy_stream(out, to) }
to.rewind
end
+
+ def logger
+ ActiveStorage.logger
+ end
end
end