aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-09-30 05:39:27 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-09-30 05:40:55 +0900
commit83b7cb3a4711794ca1716d1b593643d2309f0019 (patch)
tree7ea3c1f9684962b8e3c1b0e09ce484063f9055f6 /activestorage/lib
parent4065323869555c8af13143cc1731fd99c74bfbfc (diff)
downloadrails-83b7cb3a4711794ca1716d1b593643d2309f0019.tar.gz
rails-83b7cb3a4711794ca1716d1b593643d2309f0019.tar.bz2
rails-83b7cb3a4711794ca1716d1b593643d2309f0019.zip
Fix "warning: `*' interpreted as argument prefix"
Diffstat (limited to 'activestorage/lib')
-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