[Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-02 Thread Lars Pind
I've added a new feature to acts_as_nested_set, namely the ability to move a node within a tree. It is accomplished with calls ActiveRecord::Base.update_all, works fine on a whole subtree, and works by opening a gap for the destination, moving, and then closing the gap at the origin. But

Re: [Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-02 Thread court3nay
On Aug 2, 2006, at 3:28 AM, Lars Pind wrote: I've added a new feature to acts_as_nested_set, namely the ability to move a node within a tree. It is accomplished with calls ActiveRecord::Base.update_all, works fine on a whole subtree, and works by opening a gap for the destination,

Re: [Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-02 Thread Blake Watters
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 2, 2006, at 6:37 AM, court3nay wrote: On Aug 2, 2006, at 3:28 AM, Lars Pind wrote: I've added a new feature to acts_as_nested_set, namely the ability to move a node within a tree. It is accomplished with calls

Re: [Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-02 Thread Julian 'Julik' Tarkhanov
On 2-aug-2006, at 12:37, court3nay wrote: Particularly given the few people using it, and the 'fragility' of the code.. I don't think it's really few. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ Rails-core

Re: [Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-02 Thread Dave Thomas
On Aug 2, 2006, at 9:43 AM, Julian 'Julik' Tarkhanov wrote: Particularly given the few people using it, and the 'fragility' of the code.. I don't think it's really few. I still can't get it to work for my simple examples in the book, and I'm not documenting it in the second edition

Re: [Rails-core] Testing has_many :dependent = :restrict

2006-08-02 Thread Daniel N
On 29 Jul 2006 20:04:41 -, Kevin Olbrich [EMAIL PROTECTED] wrote: On Saturday, July 29, 2006, at 1:29 PM, Daniel N wrote:On 7/27/06, Jeremy Kemper [EMAIL PROTECTED] wrote: On Jul 26, 2006, at 6:06 AM, Daniel N wrote: I've had a crack at this one and it is as I feared. If I define the

Re: Re: [Rails-core] [PATCH] Giving acts_as_nested_set some love and moving nodes around in a tree

2006-08-02 Thread David Heinemeier Hansson
Particularly given the few people using it, and the 'fragility' of the code.. I don't think it's really few. I still can't get it to work for my simple examples in the book, and I'm not documenting it in the second edition because of that. I've tried to find folks to look at the problems