Make ticket layout configurable
Added option for conference organizer to switch between ticket layouts (horizontal or vertical). Added test for the same.
This commit is contained in:
parent
e25de318bd
commit
dd52a9b2ab
10 changed files with 38 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
prawn_document(filename: @file_name, page_layout: :portrait, :page_size =>'A4' ) do |pdf|
|
||||
prawn_document(filename: @file_name, page_layout: @ticket_layout, :page_size =>'A4' ) do |pdf|
|
||||
# Vertical Layout
|
||||
top = pdf.bounds.top
|
||||
bottom = pdf.bounds.bottom
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue