1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-12 12:13:08 +00:00
Jean-Philippe Lang 573d7905da rfpdf backward compatibility (Rails 2.0) hack.
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1619 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-07-04 16:35:23 +00:00

10 lines
247 B
Ruby

require 'rfpdf'
begin
ActionView::Template::register_template_handler 'rfpdf', RFPDF::View
rescue NameError
# Rails < 2.1
RFPDF::View.backward_compatibility_mode = true
ActionView::Base::register_template_handler 'rfpdf', RFPDF::View
end