Skip to content

Commit 1229d0b

Browse files
committed
Fix Paperclip S3 url method signature
originally introduced in #9
1 parent e960b3a commit 1229d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/paperclip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def copy_to_local_file(style, local_dest_path)
113113
module Paperclip
114114
module Storage
115115
module S3SignedExtensions
116-
def url(style_name = default_style)
116+
def url(style_name = default_style, options = {})
117117
if path(style_name)
118118
base_options = { expires_in: 1.week.to_i, time: Date.current.beginning_of_week.to_time }
119119
s3_url = ENV['S3_BUCKET'] + '.s3.' + ENV['S3_REGION'] + '.amazonaws.com'

0 commit comments

Comments
 (0)