tabletop-companion/app/mailers/table_invite_mailer.rb

18 lines
381 B
Ruby
Raw Normal View History

2024-05-29 15:47:31 +00:00
# frozen_string_literal: true
class TableInviteMailer < ApplicationMailer
helper(:mailer)
def invite_user
@table_invite = params[:table_invite]
2024-06-03 10:54:38 +00:00
mail(to: @table_invite.email, subject: t(".invite_user.subject"))
2024-05-29 15:47:31 +00:00
end
2024-05-30 07:16:06 +00:00
def invite_new_user
@table_invite = params[:table_invite]
2024-06-03 10:54:38 +00:00
mail(to: @table_invite.email, subject: t(".invite_new_user.subject"))
2024-05-30 07:16:06 +00:00
end
2024-05-29 15:47:31 +00:00
end