2011-10-29 16:19:11 +04:00
|
|
|
#-- encoding: UTF-8
|
2008-07-04 21:58:14 +04:00
|
|
|
begin
|
2011-03-30 07:23:54 +04:00
|
|
|
require('htmlentities')
|
|
|
|
rescue LoadError
|
|
|
|
# This gem is not required - just nice to have.
|
2008-07-04 21:58:14 +04:00
|
|
|
end
|
2011-03-30 07:23:54 +04:00
|
|
|
require('cgi')
|
|
|
|
require 'rfpdf'
|
|
|
|
|
2011-03-30 09:46:58 +04:00
|
|
|
# Mime::Type.register "application/pdf", :pdf
|
2011-03-30 07:23:54 +04:00
|
|
|
ActionView::Template::register_template_handler 'rfpdf', RFPDF::TemplateHandlers::Base
|
2011-03-30 09:46:58 +04:00
|
|
|
|