Commit 5c85095e by Prem Sichanugrist

Default the style to default style in #s3_protocol method of S3 storage

Thank you @eric-hu for reporting this regression.

Closes #583
parent 7c0d3460
...@@ -153,7 +153,7 @@ module Paperclip ...@@ -153,7 +153,7 @@ module Paperclip
end end
end end
def s3_protocol(style) def s3_protocol(style = default_style)
if @s3_protocol.is_a?(Proc) if @s3_protocol.is_a?(Proc)
@s3_protocol.call(style) @s3_protocol.call(style)
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment