Use 1.8.7 compatible @Pathname#to_s@ alias for @Pathname#to_path@.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9969 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c929ab5c16
commit
e2851a8b2a
@ -86,10 +86,10 @@ class TCPDF
|
|||||||
@@k_small_ratio = 2/3.0
|
@@k_small_ratio = 2/3.0
|
||||||
|
|
||||||
cattr_accessor :k_path_cache
|
cattr_accessor :k_path_cache
|
||||||
@@k_path_cache = Rails.root.join('tmp').to_path
|
@@k_path_cache = Rails.root.join('tmp').to_s
|
||||||
|
|
||||||
cattr_accessor :k_path_url_cache
|
cattr_accessor :k_path_url_cache
|
||||||
@@k_path_url_cache = Rails.root.join('tmp').to_path
|
@@k_path_url_cache = Rails.root.join('tmp').to_s
|
||||||
|
|
||||||
cattr_accessor :decoder
|
cattr_accessor :decoder
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ module Redmine
|
|||||||
attr_accessor :footer_date
|
attr_accessor :footer_date
|
||||||
|
|
||||||
def initialize(lang)
|
def initialize(lang)
|
||||||
@@k_path_cache = Rails.root.join('tmp', 'pdf').to_path
|
@@k_path_cache = Rails.root.join('tmp', 'pdf').to_s
|
||||||
FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache)
|
FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache)
|
||||||
set_language_if_valid lang
|
set_language_if_valid lang
|
||||||
pdf_encoding = l(:general_pdf_encoding).upcase
|
pdf_encoding = l(:general_pdf_encoding).upcase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user