aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/previewer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib/active_storage/previewer.rb')
-rw-r--r--activestorage/lib/active_storage/previewer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/previewer.rb b/activestorage/lib/active_storage/previewer.rb
index c91f64ac65..930b376067 100644
--- a/activestorage/lib/active_storage/previewer.rb
+++ b/activestorage/lib/active_storage/previewer.rb
@@ -55,7 +55,7 @@ module ActiveStorage
# end
def draw(*argv) # :doc:
Tempfile.open("output") do |file|
- capture *argv, to: file
+ capture(*argv, to: file)
yield file
end
end