use has_ancestry instead of acts_as_tree
update find_by_path
use class_attribute and self.inheritance_column=