diff --git a/app/models/communication/website/with_connected_objects.rb b/app/models/communication/website/with_connected_objects.rb index 62a4654e3158ae13632d82c028c46244dc118623..9f248879928860d3fd0ba7759d09b0f7ae7b48b9 100644 --- a/app/models/communication/website/with_connected_objects.rb +++ b/app/models/communication/website/with_connected_objects.rb @@ -89,9 +89,9 @@ module Communication::Website::WithConnectedObjects University::Organization.where(id: ids) end - def connected_hal_publications - ids = connections.where(indirect_object_type: 'Research::Hal::Publication').pluck(:indirect_object_id) - Research::Hal::Publication.where(id: ids) + def connected_publications + ids = connections.where(indirect_object_type: 'Research::Publication').pluck(:indirect_object_id) + Research::Publication.where(id: ids) end # ensure the object "website" respond to both is_direct_object? and is_indirect_object? as website doesn't include neither as_direct_object nor as_indirect_object