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.

Required Ruby Version

>= 2.5

Authors

Stefan Kroes, Keenan Brock

Versions

  1. 5.1.0
    1. source

      1. 5.1.0 source March 08, 2026 (28 KB)
  2. 5.0.0
    1. source

      1. 5.0.0 source February 09, 2026 (26.5 KB)
  3. 4.3.3
    1. source

      1. 4.3.3 source April 10, 2023 (24.5 KB)
  4. 4.3.2
    1. source

      1. 4.3.2 source March 26, 2023 (24.5 KB)
  5. 4.3.1
    1. source

      1. 4.3.1 source March 20, 2023 (24.5 KB)
Show all versions (39 total)

Pushed by

SHA 256 checksum