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

Instrument preview image drawing

上级 2a934aa3
......@@ -43,9 +43,11 @@ def preview
#
# The output tempfile is opened in the directory returned by ActiveStorage::Downloading#tempdir.
def draw(*argv) #:doc:
Tempfile.open("ActiveStorage", tempdir) do |file|
capture(*argv, to: file)
yield file
ActiveSupport::Notifications.instrument("preview.active_storage") do
Tempfile.open("ActiveStorage", tempdir) do |file|
capture(*argv, to: file)
yield file
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册