BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

ancestry

v5.1.0RubyGems· Ruby

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.

The verdict
Worth a look. Actively maintained and growing, actively maintained.
Live from the RubyGems registry · derived rules, not AI
How it scores
MaintenanceHealthy
PopularityRising
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Last published 3 months ago.
Popularity
50K downloads / week
Security
No known advisories for this version (OSV).
License
MIT
Dependencies
No runtime dependencies
Recent releases
  • 5.1.03 months ago
  • 5.0.04 months ago
  • 4.3.33 years ago
  • 4.3.23 years ago
  • 4.3.13 years ago
  • 4.3.03 years ago
  • 4.2.03 years ago
  • 4.1.04 years ago
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. (Ruby / RubyGems) · Modules