config/initializers/subscriptions.rb in ddr-models-2.4.16 vs config/initializers/subscriptions.rb in ddr-models-2.5.0.rc1

- old
+ new

@@ -14,5 +14,11 @@ # Update ActiveSupport::Notifications.subscribe(Ddr::Notifications::UPDATE, Ddr::Events::UpdateEvent) # Deletion ActiveSupport::Notifications.subscribe(Ddr::Notifications::DELETION, Ddr::Events::DeletionEvent) +ActiveSupport::Notifications.subscribe(/destroy\.\w+/, Ddr::Events::DeletionEvent) +ActiveSupport::Notifications.subscribe(/destroy\.\w+/, Ddr::Jobs::PermanentId::MakeUnavailable) + +# Deaccession +ActiveSupport::Notifications.subscribe(/deaccession\.\w+/, Ddr::Events::DeaccessionEvent) +ActiveSupport::Notifications.subscribe(/deaccession\.\w+/, Ddr::Jobs::PermanentId::MakeUnavailable)