Added supporter model and send email with the password

This commit is contained in:
2017-03-30 21:03:59 +02:00
parent 175c9bea4f
commit cfc1fbfd9f
12 changed files with 38 additions and 10 deletions
@@ -1,7 +1,7 @@
# Preview all emails at http://localhost:3000/rails/mailers/supporter_mailer
class SupporterMailerPreview < ActionMailer::Preview
def welcome
I18n.locale = :fr
SupporterMailer.welcome_email(Supporter.first)
I18n.locale = :de
SupporterMailer.welcome_email(Supporter.first, SecureRandom.hex(5))
end
end