public
Fork of technoweenie/attachment_fu
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/nicksieger/attachment_fu.git
fix orphon colon issue in the s3 backend [Ryan McGeary]
technoweenie (author)
Tue Mar 04 01:16:40 -0800 2008
commit  704d91bcaa76ee9e0ed07222f7916b166fb79ca7
tree    891e1dec7c124fc9c4bdda82312d7b8ef78a5079
parent  963b9e4889bc930e2191c882656b5c0930822a8d
...
162
163
164
165
 
166
167
168
...
162
163
164
 
165
166
167
168
0
@@ -162,7 +162,7 @@ module Technoweenie # :nodoc:
0
         end
0
         
0
         def self.port_string
0
- @port_string ||= s3_config[:port] == (s3_config[:use_ssl] ? 443 : 80) ? '' : ":#{s3_config[:port]}"
0
+ @port_string ||= (s3_config[:port].nil? || s3_config[:port] == (s3_config[:use_ssl] ? 443 : 80)) ? '' : ":#{s3_config[:port]}"
0
         end
0
 
0
         module ClassMethods

Comments

    No one has commented yet.