@@ -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'] || "#{R |
|
|
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