Make open source

This commit is contained in:
John Lees-Miller
2018-10-27 16:46:26 +01:00
commit 6e82ba528b
163 changed files with 3912 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# 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