From 5c85095e98bf9b101145d4a18af750502e7c81ed Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Sat, 3 Sep 2011 15:06:51 +0700 Subject: [PATCH] Default the style to default style in #s3_protocol method of S3 storage Thank you @eric-hu for reporting this regression. Closes #583 --- lib/paperclip/storage/s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/storage/s3.rb b/lib/paperclip/storage/s3.rb index 22b2597d7..69026b78e 100644 --- a/lib/paperclip/storage/s3.rb +++ b/lib/paperclip/storage/s3.rb @@ -153,7 +153,7 @@ def exists?(style = default_style) end end - def s3_protocol(style) + def s3_protocol(style = default_style) if @s3_protocol.is_a?(Proc) @s3_protocol.call(style) else