zrcadlo
https://github.com/redmine/redmine.git
synchronizováno 2024-08-26 17:58:38 +02:00
Rails3.2: pdf: comment out ::ActionView::TemplateHandlers::ERB of rfpdf plugin (#4796)
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
Tento commit je obsažen v:
rodič
6714d69767
revize
09c305d29f
2
vendor/plugins/rfpdf/init.rb
vendorováno
2
vendor/plugins/rfpdf/init.rb
vendorováno
@ -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
|
||||
|
||||
|
10
vendor/plugins/rfpdf/lib/rfpdf/template_handlers/base.rb
vendorováno
10
vendor/plugins/rfpdf/lib/rfpdf/template_handlers/base.rb
vendorováno
@ -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
|
||||
|
||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele