Skip to content

Commit

Permalink
ruby 1.9 syntax compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ralph committed Apr 25, 2009
1 parent a8eba95 commit fa08cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/technoweenie/attachment_fu.rb
Expand Up @@ -103,8 +103,8 @@ def has_attachment(options = {})
attachment_options[:path_prefix] ||= attachment_options[:file_system_path] attachment_options[:path_prefix] ||= attachment_options[:file_system_path]
if attachment_options[:path_prefix].nil? if attachment_options[:path_prefix].nil?
attachment_options[:path_prefix] = case attachment_options[:storage] attachment_options[:path_prefix] = case attachment_options[:storage]
when :s3: table_name when :s3 then table_name
when :cloud_files: table_name when :cloud_files then table_name
else File.join("public", table_name) else File.join("public", table_name)
end end
end end
Expand Down

0 comments on commit fa08cb0

Please sign in to comment.