decko-commons/decko

View on GitHub
mod/list/set/abstract/delist.rb

Summary

Maintainability
A
0 mins
Test Coverage
# remove set members from all lists that reference them upon deletion
event :delist, :prepare_to_store, on: :delete do
  referers.each do |referer|
    next unless referer.is_a? Abstract::List
    referer.drop_item name
    subcard referer
  end
end