Skip to content

Conversation

@niklas
Copy link

@niklas niklas commented Jul 17, 2012

We had a problem in our app: Destroying a commentable record did invoke all the :destroy hooks by the has_many :comment_threads but under certian circumstances it tried to load records it already deleted before. My first guess was the undeterministic order of deletion, but even then it happened.

My seconds guess aimed towards the tree structure. If awesome_nested_set cares about deletion of descendents, :comment_threads only has to return its roots and let ans work from there.

So here it is, works OK for us :)

niklas added 2 commits July 17, 2012 19:26
without this, destroying the commentable object occasionally would fail because awesome_nested_set had already deleted records by lft/right and could not find them on reload_nested_set.
@troex
Copy link

troex commented Nov 29, 2012

this will stop displaying nested comments

@niklas
Copy link
Author

niklas commented Nov 4, 2013

close in favor of #38

@niklas niklas closed this Nov 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants