# File lib/ancestry/instance_methods.rb, line 161 def parent= parent write_attribute(self.ancestry_base_class.ancestry_column, if parent.nil? then nil else parent.child_ancestry end) end