Hi all,
Is there any way to cause move_to_child_of to trigger a validation
check? In my application, there are certain kinds of nodes that aren''t
allowed to have children. I have code in my validate method to check
for this, but it doesn''t get called when nodes are moved to different
parents.
If there isn''t a way to do it right now (I didn''t see any way
to do it),
it seems like it should be fairly easy to add. Perhaps just wrap the
update_all call in move_to inside a transaction and call save!
afterward. I could try to write a patch for this if that sounds like
the right way to go.
Also, is using the trunk branch in production safe? I noticed that
there hasn''t been a stable release in quite a while, but there are
changes required for compatibility with Rails 2.0 that are only in trunk.
Thanks!
Curtis H.