module ActiveFedora::NestedAttributes

def will_be_destroyed?(association_name, attributes)

Only take into account the destroy flag if :allow_destroy is true
def will_be_destroyed?(association_name, attributes)
  allow_destroy?(association_name) && has_destroy_flag?(attributes)
end