Class: TicketMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/ticket_mailer.rb

Overview

Mailer for tickets

Instance Method Summary collapse

Instance Method Details

#confirmObject


8
9
10
# File 'app/mailers/ticket_mailer.rb', line 8

def confirm
  mail(to: @ticket.user.email, subject: 'conferma prenotazione') if @ticket.user.email.present?
end

#deletedObject


12
13
14
# File 'app/mailers/ticket_mailer.rb', line 12

def deleted
  mail(to: @ticket.user.email, subject: 'Conferma eliminazione prenotazione') if @ticket.user.email.present?
end

#set_variablesObject (private)


18
19
20
# File 'app/mailers/ticket_mailer.rb', line 18

def set_variables
  @ticket  = params[:ticket]
end