mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-12 01:46:55 +08:00
This email is no longer needed, because if user enables assignment notifications, he/she will already receive an email whenever he/she is added to a new organization/team (via notifications email).
30 lines
No EOL
694 B
Ruby
30 lines
No EOL
694 B
Ruby
class AppMailerPreview < ActionMailer::Preview
|
|
def confirmation_instructions
|
|
AppMailer.confirmation_instructions(fake_user, "faketoken", {})
|
|
end
|
|
|
|
def reset_password_instructions
|
|
AppMailer.reset_password_instructions(fake_user, "faketoken", {})
|
|
end
|
|
|
|
def unlock_instructions
|
|
AppMailer.unlock_instructions(fake_user, "faketoken", {})
|
|
end
|
|
|
|
def invitation_instructions
|
|
AppMailer.invitation_instructions(fake_user, "faketoken", {})
|
|
end
|
|
|
|
private
|
|
|
|
def fake_user
|
|
User.new(
|
|
full_name: "Johny Cash",
|
|
initials: "JC",
|
|
email: "johny.cash@gmail.com",
|
|
created_at: Time.now,
|
|
updated_at: Time.now,
|
|
confirmed_at: Time.now
|
|
)
|
|
end
|
|
end |