|
|
@ -14,7 +14,7 @@ class DeviseNotifyMailer < Devise::Mailer |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def personalisation(record, token, url) |
|
|
|
def personalisation(record, token, url) |
|
|
|
personalisation = { |
|
|
|
{ |
|
|
|
name: record.name || record.email, |
|
|
|
name: record.name || record.email, |
|
|
|
email: record.email, |
|
|
|
email: record.email, |
|
|
|
organisation: record.respond_to?(:organisation) ? record.organisation.name : "", |
|
|
|
organisation: record.respond_to?(:organisation) ? record.organisation.name : "", |
|
|
@ -28,7 +28,7 @@ class DeviseNotifyMailer < Devise::Mailer |
|
|
|
send_email( |
|
|
|
send_email( |
|
|
|
record.email, |
|
|
|
record.email, |
|
|
|
record.reset_password_notify_template, |
|
|
|
record.reset_password_notify_template, |
|
|
|
personalisation(record, token, url) |
|
|
|
personalisation(record, token, url), |
|
|
|
) |
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ class DeviseNotifyMailer < Devise::Mailer |
|
|
|
send_email( |
|
|
|
send_email( |
|
|
|
record.email, |
|
|
|
record.email, |
|
|
|
record.confirmable_template, |
|
|
|
record.confirmable_template, |
|
|
|
personalisation(record, token, url) |
|
|
|
personalisation(record, token, url), |
|
|
|
) |
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|