def find_in_nested_set(*args)
what, outer_scope, inner_scope = case args.length
when 3 then [args[0], args[1], args[2]]
when 2 then [args[0], nil, args[1]]
when 1 then [args[0], nil, nil]
else [:all, nil, nil]
end
if inner_scope && outer_scope && inner_scope.delete(:reverse) && outer_scope[:order] == "#{prefixed_left_col_name}"
outer_scope[:order] = "#{prefixed_right_col_name} DESC"
end
acts_as_nested_set_options[:class].with_scope(:find => (outer_scope || {})) do
acts_as_nested_set_options[:class].find(what, inner_scope || {})
end
end