tabletop-companion/test/mailers/previews/table_invite_mailer_preview.rb

13 lines
371 B
Ruby
Raw Permalink Normal View History

2024-05-30 13:39:41 +00:00
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/table_invite_mailer
class TableInviteMailerPreview < ActionMailer::Preview
def invite_user
TableInviteMailer.with(table_invite: TableInvite.first).invite_user
end
def invite_new_user
TableInviteMailer.with(table_invite: TableInvite.first).invite_new_user
end
end