# File lib/ancestry/materialized_path.rb, line 12 def ancestor_conditions(object) t = arel_table node = to_node(object) t[primary_key].in(node.ancestor_ids) end