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
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
class TicketMailer < ApplicationMailer
|
class TicketMailer < ApplicationMailer
|
||||||
|
helper :tickets
|
||||||
|
|
||||||
def purchase_confirmation_order(order)
|
def purchase_confirmation_order(order)
|
||||||
@order = order
|
@order = order
|
||||||
@user = order.user
|
@user = order.user
|
||||||
|
|||||||
Reference in New Issue
Block a user