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:
parent
ff3210556b
commit
e092cae49c
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue