All Versions
75
Latest Version
Avg Release Cycle
177 days
Latest Release
-

Changelog History
Page 4

  • v4.2.5 Changes

    • Fix for potential deadlock from delete_hierarchy_references not being called within an advisory lock. Thanks, Armando Guereca, for finding that!

    • Sped up find_or_create_by_path to skip cycle detection validation. A node whose ancestry was 200-deep took 20 seconds to create (!!), and now takes < 1 second.

    • ๐Ÿ›  Fixed issue with MySQL that prevented nodes > 60 levels deep from being created

  • v4.2.4 Changes

    • ๐Ÿ‘Œ Support for root?, child?, and proper parent-child associations when both the parent and the child are not persisted. Addresses issue 64. Thanks for the help, Gabriel Mazetto!
  • v4.2.3 Changes

    • Fixed attr_accessible? error introduced in 4.2.2 (issue 66).
    • ๐Ÿ‘ Switched to use new WithAdvisoryLock::DatabaseAdapterSupport (in v0.0.9) to add Postgis support
  • v4.2.2 Changes

    • Support attr_accessible and strong_attributes even if you're on Rails 4
  • v4.2.1 Changes

    • Deleting from NumericDeterministicOrdering doesn't create sort order gaps anymore.
  • v4.2.0 Changes

    • Added with_ancestor(*ancestors). Thanks for the idea, Matt!
    • ๐Ÿ‘ Applied Leonel Galan's fix for Strong Attribute support
    • find_or_create_by now uses passed-in attributes as both selection and creation criteria. Thanks for the help, Judd Blair! Please note that this changes prior behaviorโ€”test your code with this new version!
    • ct_advisory_lock was moved into the _ct support class, to reduce model method pollution
    • ๐Ÿšš Moved a bunch of code into more focused piles of module mixins
  • v4.1.0 Changes

    • โž• Added support for Rails 4.0.0.rc1 and Ruby 2.0.0 (while maintaining backward compatibility with Rails 3, BOOYA)
    • Added #to_dot_digraph, suitable for Graphviz rendering
  • v4.0.1 Changes

    • Numeric, deterministically ordered siblings will always be [0..#{self_and_siblings.count}] (previously, the sort order might use negative values, which broke the preordering). Resolves issue 49. Thanks for the help, Leonel Galan, Juan Hoyos, and Michael Elfassy!

    • The order option can be a symbol now. Resolves issue 46.

  • v4.0.0 Changes

    • ๐Ÿšš Moved all of closure_tree's implementation-detail methods into a ClosureTree::Support instance, which removes almost all of the namespace pollution in your models that wasn't for normal consumption. If you were using any of these methods, they're now available through the "_ct" class and instance member.

    This change may break consumers, so I incremented the major version number, even though no new functionality was released.

  • v3.10.2 Changes

    • Prevent faulty SQL statement when #siblings is called on an unsaved records. Resolves issue 52. Perfect pull request by Gary Greyling.

    • The .roots class method now correctly respects the :order option. Resolves issue 53. Thanks for finding this, Brendon Muir!