foodsoft/vendor/plugins/rfpdf/environment.rb

19 lines
591 B
Ruby
Raw Normal View History

2009-01-06 11:49:19 +01:00
begin
require('htmlentities')
rescue LoadError
# This gem is not required - just nice to have.
end
require('cgi')
require "#{File.dirname __FILE__}/lib/core/view"
require "#{File.dirname __FILE__}/lib/core/rfpdf"
require "#{File.dirname __FILE__}/lib/tcpdf"
require "#{File.dirname __FILE__}/lib/fpdf/errors"
require "#{File.dirname __FILE__}/lib/fpdf/fpdf"
require "#{File.dirname __FILE__}/lib/fpdf/chinese"
require "#{File.dirname __FILE__}/lib/fpdf/japanese"
require "#{File.dirname __FILE__}/lib/fpdf/korean"
ActionView::Template::register_template_handler 'rfpdf', RFPDF::View