Class: Memberships::UpdatedNotification
- Inherits:
-
SimpleTeams::MembershipNotification
- Object
- SimpleTeams::MembershipNotification
- Memberships::UpdatedNotification
- Defined in:
- app/notifications/simple_teams/memberships/updated_notification.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/notifications/simple_teams/memberships/updated_notification.rb', line 4 def if recipient.id == params[:member_id] "#{user_name} updated your role for #{team_name}." else "#{user_name} updated the role of #{member_name} for #{team_name}." end end |
#subject ⇒ Object
12 13 14 |
# File 'app/notifications/simple_teams/memberships/updated_notification.rb', line 12 def subject "Member Updated" end |