Skip to content

Commit

Permalink
Default the style to default style in #s3_protocol method of S3 storage
Browse files Browse the repository at this point in the history
Thank you @eric-hu for reporting this regression.

Closes thoughtbot#583
  • Loading branch information
sikachu committed Sep 3, 2011
1 parent 7c0d346 commit 5c85095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/storage/s3.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5c85095

Please sign in to comment.