From 8dd5a14b237a6957fb70e9fb077fccf930a16a4a Mon Sep 17 00:00:00 2001 From: rahul Date: Tue, 12 Sep 2017 17:52:01 +0530 Subject: [PATCH] Remove to_s from conference.venue.name name is already a string so to_s in not required --- app/pdfs/ticket_pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pdfs/ticket_pdf.rb b/app/pdfs/ticket_pdf.rb index 48f26fe3..41af54ef 100644 --- a/app/pdfs/ticket_pdf.rb +++ b/app/pdfs/ticket_pdf.rb @@ -52,7 +52,7 @@ class TicketPdf < Prawn::Document draw_text @conference.title.to_s, at: [@mid_horizontal + 30, cursor - 30], size: 12 draw_text @conference.organization.name.to_s, at: [@mid_horizontal + 30, cursor - 50], size: 12 if @conference.venue - draw_text @conference.venue.name.to_s, at: [@mid_horizontal + 30, cursor - 70] + draw_text @conference.venue.name, at: [@mid_horizontal + 30, cursor - 70] end move_up 130 move_down @mid_vertical