Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Comments and cleanup.

  • Loading branch information...
commit 3413c4c683dd8b830e71fc3b14329c2934889b34 1 parent 838682e
Edwin Moss authored
Showing with 1 addition and 5 deletions.
  1. +1 −1  CHANGELOG
  2. +0 −4 lib/rfpdf/template_handlers/base.rb
View
2  CHANGELOG
@@ -11,4 +11,4 @@
* Added :filename option in this hash
If you're using the same settings for @options_for_rfpdf often, you might want to
put your assignment in a before_filter (perhaps overriding :filename, etc in your actions).
-1.15 2009-11-20 Rails 2.* support
+1.15 2009-11-20 Rails 2.* support - Thanks to Prawnto plugin for showing the way to the new TemplateHandler
View
4 lib/rfpdf/template_handlers/base.rb
@@ -3,10 +3,6 @@ module TemplateHandlers
class Base < ::ActionView::TemplateHandlers::ERB
def compile(template)
- # "_rfpdf_compile_setup;" +
- # "pdf = Prawn::Document.new(@rfpdf_options[:prawn]);" +
- # "#{template.source}\n" +
- # "pdf.render;"
src = "_rfpdf_compile_setup;" + super
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.