Mercurial > hg > soundsoftware-site
comparison vendor/plugins/rfpdf/.svn/text-base/init.rb.svn-base @ 524:1248a47e81b3 feature_36
Merge from branch "luisf"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 14:39:38 +0100 |
parents | cbce1fd3b1b7 |
children |
comparison
equal
deleted
inserted
replaced
519:3be6bc3c2a17 | 524:1248a47e81b3 |
---|---|
1 begin | |
2 require('htmlentities') | |
3 rescue LoadError | |
4 # This gem is not required - just nice to have. | |
5 end | |
6 require('cgi') | |
1 require 'rfpdf' | 7 require 'rfpdf' |
2 | 8 |
3 begin | 9 # Mime::Type.register "application/pdf", :pdf |
4 ActionView::Template::register_template_handler 'rfpdf', RFPDF::View | 10 ActionView::Template::register_template_handler 'rfpdf', RFPDF::TemplateHandlers::Base |
5 rescue NameError | 11 |
6 # Rails < 2.1 | |
7 RFPDF::View.backward_compatibility_mode = true | |
8 ActionView::Base::register_template_handler 'rfpdf', RFPDF::View | |
9 end |