diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-15 23:39:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-15 23:39:37 +0000 |
commit | 5500defd0dbd2daf666b41395dedb61acc8ac4d5 (patch) | |
tree | 09d4a858de14dad2112b2158b84e3abfaf37fe95 /app/models/attachment.rb | |
parent | 115d22729848c84bd669e4a5017c360a620213a6 (diff) | |
download | redmine-5500defd0dbd2daf666b41395dedb61acc8ac4d5.tar.gz redmine-5500defd0dbd2daf666b41395dedb61acc8ac4d5.zip |
replace RAILS_ROOT to Rails.root of attachments storage path.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6074 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/attachment.rb')
-rw-r--r-- | app/models/attachment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index ff434d8f2..92eb9157a 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -43,7 +43,7 @@ class Attachment < ActiveRecord::Base "LEFT JOIN #{Project.table_name} ON #{Document.table_name}.project_id = #{Project.table_name}.id"} cattr_accessor :storage_path - @@storage_path = Redmine::Configuration['attachments_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 |