Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix args not being passed to constructor

  • Loading branch information...
commit cb306dae1c12a54c0209d328b74f85892ac8ad90 1 parent 2c09600
@Whoops Whoops authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/prawn_rails.rb
View
4 lib/prawn_rails.rb
@@ -8,7 +8,7 @@ module Rails
module PrawnHelper
def prawn_document(opts={})
- pdf = (opts.delete(:renderer) || Prawn::Document).new
+ pdf = (opts.delete(:renderer) || Prawn::Document).new(opts)
yield pdf if block_given?
pdf
@@ -30,4 +30,4 @@ def self.call(template)
Mime::Type.register_alias "application/pdf", :pdf
ActionView::Template.register_template_handler(:prawn, Prawn::Rails::TemplateHandler)
-ActionView::Base.send(:include, Prawn::Rails::PrawnHelper)
+ActionView::Base.send(:include, Prawn::Rails::PrawnHelper)
Please sign in to comment.
Something went wrong with that request. Please try again.