app/models/message.rb in hackathon_manager-0.6.6 vs app/models/message.rb in hackathon_manager-0.7.0

- old
+ new

@@ -16,11 +16,11 @@ "late-waitlisted" => "Late, Waitlisted Applications", "rsvp-confirmed" => "RSVP Confirmed Attendees", "rsvp-denied" => "RSVP Denied Attendees", "checked-in" => "Checked-In Attendees", "non-checked-in" => "Non-Checked-In, Accepted & RSVP'd Applications", - "non-checked-in-excluding" => "Non-Checked-In Applications, Excluding Accepted & RSVP'd", + "non-checked-in-excluding" => "Non-Checked-In Applications, Excluding Accepted & RSVP'd" }.freeze POSSIBLE_TRIGGERS = { "questionnaire.pending" => "Questionnaire Status: Pending Review (new application)", "questionnaire.accepted" => "Questionnaire Status: Accepted", @@ -41,16 +41,16 @@ def recipients_list labels = recipients.map do |r| if POSSIBLE_SIMPLE_RECIPIENTS.include?(r) POSSIBLE_SIMPLE_RECIPIENTS[r] - elsif r =~ /(.*)::(\d*)/ + elsif r.match? /(.*)::(\d*)/ MessageRecipientQuery.friendly_name(r) else "(unknown)" end end - labels.join(', ') + labels end def delivered? delivered_at.present? end