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
+2 -1
View File
@@ -1,8 +1,9 @@
class SupporterMailer < ApplicationMailer
include Roadie::Rails::Automatic
def welcome_email(supporter)
def welcome_email(supporter, random_password)
@supporter = supporter
@password = random_password
mail(to: @supporter.email, subject: I18n.t('welcome_email.subject'))
end
end