Method: Ancestry::MaterializedPath#children_of

Defined in:
lib/ancestry/materialized_path.rb

#children_of(object) ⇒ Object



30
31
32
33
34
# File 'lib/ancestry/materialized_path.rb', line 30

def children_of(object)
  t = arel_table
  node = to_node(object)
  where(t[ancestry_column].eq(node.child_ancestry))
end