]> source.dussan.org Git - redmine.git/commitdiff
Rails3.2: pdf: comment out ::ActionView::TemplateHandlers::ERB of rfpdf plugin (...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Jan 2012 05:15:40 +0000 (05:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Jan 2012 05:15:40 +0000 (05:15 +0000)
ActionView::TemplateHandlers is deprecated on Rails3.2
and Redmine cannot boot on Rails3.2.
Redmine does not use this rfpdf plugin feature.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8702 e93f8b46-1217-0410-a6f0-8f06a7374b81

vendor/plugins/rfpdf/init.rb
vendor/plugins/rfpdf/lib/rfpdf/template_handlers/base.rb

index 196e6490196feaa8e24c3970ae8df00ff2011156..efe4ebd7844fe758d7ef1d6134923bd681b39b78 100644 (file)
@@ -7,5 +7,5 @@ require('cgi')
 require 'rfpdf'
 
 # Mime::Type.register "application/pdf", :pdf
-ActionView::Template::register_template_handler 'rfpdf', RFPDF::TemplateHandlers::Base
+ActionView::Template::register_template_handler 'rfpdf', RFPDF::TemplateHandlers::Base
 
index 11b72c8fea0a1b4d7468f232b3cc2a60ada5a0c3..a7b15453e5eec85dadf4e84f13c9dd77ba4b08fd 100644 (file)
@@ -1,11 +1,11 @@
 module RFPDF
   module TemplateHandlers
-    class Base < ::ActionView::TemplateHandlers::ERB
+    class Base < ::ActionView::TemplateHandlers::ERB
       
-      def compile(template)
-        src = "_rfpdf_compile_setup;" + super
-      end
-    end
+      def compile(template)
+        src = "_rfpdf_compile_setup;" + super
+      end
+    end
   end
 end