# File lib/ancestry/class_methods.rb, line 4 def to_node object if object.is_a?(self.ancestry_base_class) then object else unscoped_where{|scope| scope.find object} end end