closure_tree
closure_tree copied to clipboard
Easily and efficiently make your ActiveRecord models support hierarchies
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...
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)
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...
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...
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...
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...
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...
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...