logo
首页技术栈工具库讨论
ancestry

ancestry

Ancestry allows the records of a ActiveRecord model to be organized in a tree structure, using the materialized path pattern. It exposes the standard relations (ancestors, parent, root, children, siblings, descendants) and allows them to be fetched in a single query. Additional features include named scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.
由 
wangzuo2021-02-10 收录
--
推荐
不推荐
更多信息
GitHub iconstefankroes/ancestry3239
RUBYGEMS
gem install ancestry
查看
标签
根据用户添加的标签生成
暂无标签