##// END OF EJS Templates
replace RAILS_ROOT to Rails.root of attachments storage path....
Toshi MARUYAMA -
r5954:5500defd0dbd
parent child
Show More
@@ -43,7 +43,7 class Attachment < ActiveRecord::Base
43 43 "LEFT JOIN #{Project.table_name} ON #{Document.table_name}.project_id = #{Project.table_name}.id"}
44 44
45 45 cattr_accessor :storage_path
46 @@storage_path = Redmine::Configuration['attachments_storage_path'] || "#{RAILS_ROOT}/files"
46 @@storage_path = Redmine::Configuration['attachments_storage_path'] || "#{Rails.root}/files"
47 47
48 48 def validate
49 49 if self.filesize > Setting.attachment_max_size.to_i.kilobytes
General Comments 0
You need to be logged in to leave comments. Login now