app/models/message.rb in hackathon_manager-0.11.2 vs app/models/message.rb in hackathon_manager-0.12.0

- old
+ new

@@ -101,12 +101,10 @@ # Produce an array like: # ["School: My University", "school::123"] option = ->(query, model) { [MessageRecipientQuery.friendly_name(query, model), query] } bus_list_recipients = BusList.select(:id, :name).map do |bus_list| [ - option.call("bus-list::#{bus_list.id}", bus_list), - option.call("bus-list--eligible::#{bus_list.id}", bus_list), - option.call("bus-list--applied::#{bus_list.id}", bus_list) + option.call("bus-list::#{bus_list.id}", bus_list) ] end bus_list_recipients.flatten!(1) # Required since we have multiple options for each bus list school_recipients = School.select(:id, :name).map do |school|