1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add ActiveStorage::Previewer#tempdir

This commit is contained in:
George Claghorn 2018-05-16 22:55:09 -04:00
parent ff3210556b
commit e092cae49c

View file

@ -44,7 +44,7 @@ module ActiveStorage
# end
# end
#
# The output tempfile is opened in the directory returned by ActiveStorage::Downloading#tempdir.
# The output tempfile is opened in the directory returned by #tempdir.
def draw(*argv) #:doc:
ActiveSupport::Notifications.instrument("preview.active_storage") do
open_tempfile_for_drawing do |file|
@ -73,5 +73,9 @@ module ActiveStorage
def logger #:doc:
ActiveStorage.logger
end
def tempdir #:doc:
Dir.tmpdir
end
end
end