Closure Tree v5.0.0 Release Notes

  • 💥 Breaking API changes

    • find_by_path and find_or_create_by_path now takes either an array of strings or an array of attribute hashes, which can include the inheritance column for STI support.
    • Removed the extraneous base_class acts_as_tree option—it needlessly duplicated ActiveRecord's method.
    • Removed the unused name acts_as_tree option.

    👌 Improvements and bugfixes

    • 👍 Cleaned up the inheritance support methods to delegate correctly to ActiveRecord
    • 🛠 Fixed a query generation error when ancestor paths exceeded 50 items.
    • Documented the .touch option