Class: Memberships::LeftNotification

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

Instance Method Summary collapse

Instance Method Details

#messageObject



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

def message
  if recipient.id == params[:member_id]
    "You left #{team_name}."
  else
    "#{member_name} left #{team_name}."
  end
end

#subjectObject



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

def subject
  "Member Left"
end