From b5c1846f2c620edb24ea046b21d84fdf13e493e9 Mon Sep 17 00:00:00 2001 From: kbe Date: Tue, 16 Sep 2025 17:25:14 +0200 Subject: [PATCH] fix(mailers): Include TicketsHelper in TicketMailer to make format_ticket_price available - Add helper :tickets to TicketMailer to make format_ticket_price method available in mailer templates - Fixes undefined method 'format_ticket_price' error in purchase confirmation emails - Required after recent changes to support free tickets --- app/mailers/ticket_mailer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/mailers/ticket_mailer.rb b/app/mailers/ticket_mailer.rb index 79a066c..8164572 100755 --- a/app/mailers/ticket_mailer.rb +++ b/app/mailers/ticket_mailer.rb @@ -1,4 +1,6 @@ class TicketMailer < ApplicationMailer + helper :tickets + def purchase_confirmation_order(order) @order = order @user = order.user