Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Typo fix in s3_url checking by mkdynamic

  • Loading branch information...
commit 7af82d257bc7a7919e82b4eaf8ac8cd4118a28ad 1 parent 3b8ed8d
Jon Yurek jyurek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/storage.rb
2  lib/paperclip/storage.rb
View
@@ -110,7 +110,7 @@ def self.extended base
@s3_options = @options[:s3_options] || {}
@s3_permissions = @options[:s3_permissions] || 'public-read'
@s3_protocol = @options[:s3_protocol] || (@s3_permissions == 'public-read' ? 'http' : 'https')
- @url = ":s3_path_url" unless @url.to_s.match(/^s3.*url$/)
+ @url = ":s3_path_url" unless @url.to_s.match(/^:s3.*url$/)
end
base.class.interpolations[:s3_path_url] = lambda do |attachment, style|
"#{attachment.s3_protocol}://s3.amazonaws.com/#{attachment.bucket_name}/#{attachment.path(style).gsub(%r{^/}, "")}"
Please sign in to comment.
Something went wrong with that request. Please try again.