Files
wedding/test/mailers/previews/guest_mailer_preview.rb
2020-05-30 09:40:57 +01:00

31 lines
725 B
Ruby

# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/guest_mailer
class GuestMailerPreview < ActionMailer::Preview
def confirmation_email_attending
GuestMailer.confirmation_email(
Guest.new(
id: 123,
first_name: 'John',
last_name: 'Doe',
email: 'john.doe@example.com',
token: 'abcdefghiklmnop',
attending: true
)
)
end
def confirmation_email_attending_not_attending
GuestMailer.confirmation_email(
Guest.new(
id: 123,
first_name: 'John',
last_name: 'Doe',
email: 'john.doe@example.com',
token: 'abcdefghiklmnop',
attending: false
)
)
end
end