Class: SimpleTeams::Mailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- SimpleTeams::Mailer
- Defined in:
- app/mailers/simple_teams/mailer.rb
Instance Method Summary collapse
Instance Method Details
#invitation_notification(invitation) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/simple_teams/mailer.rb', line 4 def invitation_notification(invitation) @invitation = invitation @name = invitation.team.name @resource_name = invitation.team.teamable.class.model_name.human @invitation_url = accept_team_invitation_url(@invitation.token) mail( to: (@invitation.email), subject: "Invitation to #{@name} #{@resource_name}" ) end |