# File lib/symetrie_com/acts_as_better_nested_set.rb, line 607 def direct_children_by_id(*args) scope = args.last.is_a?(Hash) ? args.pop : {} ids = args.flatten.compact.uniq self.class.find_in_nested_set(:all, { :conditions => ["#{scope_condition} AND #{prefixed_parent_col_name} = #{self.id} AND #{self.class.table_name}.#{self.class.primary_key} IN (?)", ids] }, scope) end