Skip to content

Commit

Permalink
prawn group formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
map7 committed Apr 29, 2010
1 parent 23aa0d9 commit 921a5a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ruport/formatter/prawn_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def initialize
end

def pdf
@pdf ||= ::Prawn::Document.new()
@pdf ||= (options.formatter || ::Prawn::Document.new())
end

def draw_table(table)

table_array = [table.column_names]
table_array += table_to_array(table)
pdf.table(table_array) do
Expand Down

0 comments on commit 921a5a4

Please sign in to comment.