mirror of
https://github.com/redmine/redmine.git
synced 2026-03-09 14:10:47 +01:00
10 lines
247 B
Ruby
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
|