class RuboCop::Cop::Rails::HasManyOrHasOneDependent

def valid_options_in_with_options_block?(node)

def valid_options_in_with_options_block?(node)
  return true unless node.parent
  n = node.parent.begin_type? || association_extension_block?(node.parent) ? node.parent.parent : node.parent
  contain_valid_options_in_with_options_block?(n)
end