Enhances ActiveRecord with nested hierarchies.