@@k_small_ratio = 2/3.0
cattr_accessor :k_path_cache
- @@k_path_cache = Rails.root.join('tmp')
+ @@k_path_cache = Rails.root.join('tmp').to_path
cattr_accessor :k_path_url_cache
- @@k_path_url_cache = Rails.root.join('tmp')
+ @@k_path_url_cache = Rails.root.join('tmp').to_path
cattr_accessor :decoder
attr_accessor :footer_date
def initialize(lang)
- @@k_path_cache = Rails.root.join('tmp', 'pdf')
+ @@k_path_cache = Rails.root.join('tmp', 'pdf').to_path
FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache)
set_language_if_valid lang
pdf_encoding = l(:general_pdf_encoding).upcase