Skip to content

Commit

Permalink
Fix Paperclip S3 url method signature
Browse files Browse the repository at this point in the history
originally introduced in #9
  • Loading branch information
jesseplusplus committed Feb 8, 2023
1 parent e960b3a commit 1229d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def copy_to_local_file(style, local_dest_path)
module Paperclip
module Storage
module S3SignedExtensions
def url(style_name = default_style)
def url(style_name = default_style, options = {})
if path(style_name)
base_options = { expires_in: 1.week.to_i, time: Date.current.beginning_of_week.to_time }
s3_url = ENV['S3_BUCKET'] + '.s3.' + ENV['S3_REGION'] + '.amazonaws.com'
Expand Down

0 comments on commit 1229d0b

Please sign in to comment.