app/actors/hyrax/actors/base_actor.rb in hyrax-3.1.0 vs app/actors/hyrax/actors/base_actor.rb in hyrax-3.2.0
- old
+ new
@@ -35,10 +35,10 @@
# @param [Hyrax::Actors::Environment] env
# @return [Boolean] true if destroy was successful
def destroy(env)
env.curation_concern.in_collection_ids.each do |id|
- destination_collection = ::Collection.find(id)
+ destination_collection = Hyrax.config.collection_class.find(id)
destination_collection.members.delete(env.curation_concern)
destination_collection.update_index
end
env.curation_concern.destroy
end