提交 e092cae4 编写于 作者: G George Claghorn

Add ActiveStorage::Previewer#tempdir

上级 ff321055
......@@ -44,7 +44,7 @@ def download_blob_to_tempfile(&block) #:doc:
# 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 @@ def capture(*argv, to:)
def logger #:doc:
ActiveStorage.logger
end
def tempdir #:doc:
Dir.tmpdir
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册