obsolete.ChilliProject/vendor/plugins/rfpdf/init.rb

13 lines
290 B
Ruby
Raw Permalink Normal View History

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