diff --git a/app/models/communication/website/with_connected_objects.rb b/app/models/communication/website/with_connected_objects.rb index c49b396991e9ef97cf484e7e4b5071044485adf7..21fe01143349673f6344ea3865281d27fca57ad2 100644 --- a/app/models/communication/website/with_connected_objects.rb +++ b/app/models/communication/website/with_connected_objects.rb @@ -7,6 +7,7 @@ module Communication::Website::WithConnectedObjects # Appelé par un objet avec des connexions lorsqu'il est destroyed def destroy_obsolete_connections + # TODO: optimiser up_to_date_dependencies = recursive_dependencies connections.find_each do |connection| connection_obsolete = !connection.indirect_object.in?(up_to_date_dependencies)