Permalink
Browse files

Typo fix in s3_url checking by mkdynamic

  • Loading branch information...
1 parent 3b8ed8d commit 7af82d257bc7a7919e82b4eaf8ac8cd4118a28ad @jyurek jyurek committed Aug 25, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 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{^/}, "")}"

0 comments on commit 7af82d2

Please sign in to comment.