2006-11-21 21:34:04 +03:00
|
|
|
require 'rfpdf'
|
|
|
|
|
2008-07-04 21:58:14 +04:00
|
|
|
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
|