Permalink
Browse files

ruby 1.9 syntax compatibility fixes

  • Loading branch information...
1 parent a8eba95 commit fa08cb03914b02b66853b4615cd3eca768291ca7 @ralph ralph committed Apr 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/technoweenie/attachment_fu.rb
@@ -103,8 +103,8 @@ def has_attachment(options = {})
attachment_options[:path_prefix] ||= attachment_options[:file_system_path]
if attachment_options[:path_prefix].nil?
attachment_options[:path_prefix] = case attachment_options[:storage]
- when :s3: table_name
- when :cloud_files: table_name
+ when :s3 then table_name
+ when :cloud_files then table_name
else File.join("public", table_name)
end
end

0 comments on commit fa08cb0

Please sign in to comment.