Class: Spina::ReservationMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Spina::ReservationMailer
- Defined in:
- app/mailers/spina/reservation_mailer.rb
Instance Method Summary collapse
Instance Method Details
#reservation(reservation) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/spina/reservation_mailer.rb', line 5 def reservation(reservation) @reservation = reservation @current_account = Account.first mail( to: "\"#{@current_account.name}\" <#{ @current_account.email }>", from: "\"#{@reservation.name}\" <#{@reservation.email}>", subject: "Nieuwe reservering voor #{@reservation.date}" ) end |