lib/hydra/works/models/concerns/work_behavior.rb
# Remove this object from parent works or collections
Remove this object from parent works or collections
Remove this object from parent works or collections
def remove_from_parents
        ordered_by.each do |parent|
          parent.ordered_members.delete(self) 
          parent.members.delete(self) 
          parent.save! 
        end
      end
def remove_from_parents ordered_by . each do | parent | parent . ordered_members . delete ( self ) parent . members . delete ( self ) parent . save! end end
Remove this object from parent works or collections
Remove this object from parent works or collections
# Delete the list node # Delete the indirect container Proxy # record the changes to the ordered members