closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

Easily and efficiently make your ActiveRecord models support hierarchies

Results 95 closure_tree issues
Sort by recently updated
recently updated
newest added

I recently upgraded the application to Rails 4.1.6 (from 4.1.0) and closure_tree 5.0.0. I started getting the following error then onwards. If I remove the deterministic ordering, the error goes...

Stale

Ok this is a very tricky bug so bear with me. I tried to create a simplified test case to illustrate it but the bug seems to depend on a...

See [this failing test](https://github.com/mceachen/closure_tree/compare/master...swrobel:count-failing-test)

Bug

Hi! I'm using awesome_nested_set today to create nested comments but looking to switch to something else but I have some questions. Is it possible to have different ordering of nested...

Question

I'm trying to build a drop-down list which shows the hierarchy of my categories. So far I have this: ``` class Hash def flatten_nested; flat_map{|k, v| [k, *v.flatten_nested]} end end...

Feature request

I spent a little time working out a `before_save` callback to handle assigning nodes to a new parent node when the object's `parent_id` had been changed. Of course, I got...

Feature request

We have a Rails app that does sharding using https://github.com/instructure/switchman, an ActiveRecord extension which manages database sharding by using several PostgreSQL schemas and switching between them appropriately when executing ActiveRecord...

Feature request

I've recently turned on sorting on one of my closure_tree'd models using an integer column and suddenly all the breadcrumbs in my site broke. I've got an integer `sort_order` column...

I added this gem to a Rails project to test it and am having some difficulty with sort order. I have a simple model: ``` class Question < ActiveRecord::Base has_closure_tree...

Bug
Needs tests

Ancestry has an interesting feature named "orphean_strategy". Is it possible to replicated their "adopt" strategy when parent node is destroyed ? ``` :adopt The orphan subtree is added to the...

Feature request