scinote-web/test/mailers/previews/app_mailer_preview.rb
Luka Murn cccabcdd7b Remove invitation_to_organization email
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).
2016-10-12 10:54:36 +02:00

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