Class: Memberships::UpdatedNotification

Inherits:
SimpleTeams::MembershipNotification
  • Object
show all
Defined in:
app/notifications/simple_teams/memberships/updated_notification.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



4
5
6
7
8
9
10
# File 'app/notifications/simple_teams/memberships/updated_notification.rb', line 4

def message
  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

#subjectObject



12
13
14
# File 'app/notifications/simple_teams/memberships/updated_notification.rb', line 12

def subject
  "Member Updated"
end