# File lib/symetrie_com/acts_as_better_nested_set.rb, line 109 def count_in_nested_set(*args) outer_scope, inner_scope = case args.length when 2 then [args[0], args[1]] when 1 then [nil, args[0]] else [nil, nil] end acts_as_nested_set_options[:class].with_scope(:find => (outer_scope || {})) do acts_as_nested_set_options[:class].count(inner_scope || {}) end end