You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using closure_tree 4.0.1 with rails 3.0 and ruby 1.9.3
In the model I use to act_as_tree, I need to trigger an after_create callback when a leaf is created. This callback needs the ancestors of the current object to do some operation.
Unfortunately, I cant access the ancestors in the after_create because it seems that the hierarchie of the newly created object is written in the table after the callbacks.
Would you have any idea how to fix this issue ?
The text was updated successfully, but these errors were encountered:
Hello,
I'm using closure_tree 4.0.1 with rails 3.0 and ruby 1.9.3
In the model I use to act_as_tree, I need to trigger an after_create callback when a leaf is created. This callback needs the ancestors of the current object to do some operation.
Unfortunately, I cant access the ancestors in the after_create because it seems that the hierarchie of the newly created object is written in the table after the callbacks.
Would you have any idea how to fix this issue ?
The text was updated successfully, but these errors were encountered: