Hierarchical Hydrator for ActiveRecord with support for relations.