lib/importer/factory/object_factory.rb
# Remove any existing FileSets via the FileSetActor Actor
# This will also remove any derivatives etc that the FileSet created, and
# it will remove it from membership in the given object.
# @param [ActiveFedora::Base] object
Remove any existing FileSets via the FileSetActor Actor
This will also remove any derivatives etc that the FileSet created, and
it will remove it from membership in the given object.
Remove any existing FileSets via the FileSetActor Actor This will also remove any derivatives etc that the FileSet created and it will remove it from membership in the given object .
def remove_existing_file_sets(object)
      return if object.file_sets.blank?
      object.file_sets.each do |f|
        CurationConcerns::Actors::FileSetActor.new(f, nil).destroy
      end
      object.reload.file_sets
      object.save
    end
def remove_existing_file_sets ( object ) return if object . file_sets . blank? object . file_sets . each do | f | CurationConcerns :: Actors :: FileSetActor . new ( f , nil ) . destroy end object . reload . file_sets object . save end
Remove any existing FileSets via the FileSetActor Actor
This will also remove any derivatives etc that the FileSet created, and
it will remove it from membership in the given object.
Remove any existing FileSets via the FileSetActor Actor This will also remove any derivatives etc that the FileSet created and it will remove it from membership in the given object .
object
None