diff app/models/attachment.rb @ 210:0579821a129a

Update to Redmine trunk rev 4802
author Chris Cannam
date Tue, 08 Feb 2011 13:51:46 +0000
parents 513646585e45
children cbce1fd3b1b7
line wrap: on
line diff
--- a/app/models/attachment.rb	Wed Jan 19 15:04:22 2011 +0000
+++ b/app/models/attachment.rb	Tue Feb 08 13:51:46 2011 +0000
@@ -43,7 +43,7 @@
                                                         "LEFT JOIN #{Project.table_name} ON #{Document.table_name}.project_id = #{Project.table_name}.id"}
 
   cattr_accessor :storage_path
-  @@storage_path = "#{RAILS_ROOT}/files"
+  @@storage_path = Redmine::Configuration['attachments_storage_path'] || "#{RAILS_ROOT}/files"
   
   def validate
     if self.filesize > Setting.attachment_max_size.to_i.kilobytes