Class: Memberships::LeftNotification
- Inherits:
-
SimpleTeams::MembershipNotification
- Object
- SimpleTeams::MembershipNotification
- Memberships::LeftNotification
- Defined in:
- app/notifications/simple_teams/memberships/left_notification.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/notifications/simple_teams/memberships/left_notification.rb', line 4 def if recipient.id == params[:member_id] "You left #{team_name}." else "#{member_name} left #{team_name}." end end |
#subject ⇒ Object
12 13 14 |
# File 'app/notifications/simple_teams/memberships/left_notification.rb', line 12 def subject "Member Left" end |