# File lib/ancestry/instance_methods.rb, line 4 def ancestry_exclude_self add_error_to_base "#{self.class.name.humanize} cannot be a descendant of itself." if ancestor_ids.include? self.id end