From: Toshi MARUYAMA Date: Wed, 22 Jun 2011 23:41:54 +0000 (+0000) Subject: PDF: replace RAILS_ROOT to Rails.root at vendor/plugins/rfpdf/lib/tcpdf.rb. X-Git-Tag: 1.3.0~1777 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa86ef35427f0471d96f2418ed75adbfd721011d;p=redmine.git PDF: replace RAILS_ROOT to Rails.root at vendor/plugins/rfpdf/lib/tcpdf.rb. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6121 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/vendor/plugins/rfpdf/lib/tcpdf.rb b/vendor/plugins/rfpdf/lib/tcpdf.rb index ee8cba91c..0013ca66a 100755 --- a/vendor/plugins/rfpdf/lib/tcpdf.rb +++ b/vendor/plugins/rfpdf/lib/tcpdf.rb @@ -82,10 +82,10 @@ class TCPDF @@k_small_ratio = 2/3.0 cattr_accessor :k_path_cache - @@k_path_cache = File.join(RAILS_ROOT, 'tmp') + @@k_path_cache = Rails.root.join('tmp') cattr_accessor :k_path_url_cache - @@k_path_url_cache = File.join(RAILS_ROOT, 'tmp') + @@k_path_url_cache = Rails.root.join('tmp') cattr_accessor :decoder