Hi folks,

For my app, I needed to modify acts_as_tree (ActiveRecord::Acts::Tree)
such that deleting a node would orphan sub-nodes, rather than deleting
them.  This is accomplished simply by allowing a :dependent option to
the acts_as_tree method so that it can be set to :nullify.  For my app,
I simply did this by adding a file tree.rb to my lib directory and
requiring it in the model.

A number of unit-test later it seems like this works fine re all the
instance methods (ancestors, siblings, self_and_siblings, roots).  So,
I'd like to submit a patch via Trac with this small change, but since
this would be my first, I thought I'd check in here before doing so to
see if there is any reason why I shouldn't, or if I should use a
different approach.

Thoughts?

-Eric
-- 
Department chairmen never die, they just lose their faculties.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to