mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
working on siblings
This commit is contained in:
parent
720b59d815
commit
2e796899f8
4 changed files with 21 additions and 16 deletions
|
|
@ -33,7 +33,7 @@ class RecipientList < ApplicationRecord
|
|||
new_ids = recipient_ids.split(/,/)
|
||||
(old_ids - new_ids).each do |deleted_recipient|
|
||||
schedules.each do |schedule|
|
||||
schedule.recipient_schedules.for(deleted_recipient).first.destroy
|
||||
schedule.recipient_schedules.for_recipient(deleted_recipient).first.destroy
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue