collectiveidea / awesome_nested_set

An awesome replacement for acts_as_nested_set and better_nested_set.
MIT License
2.39k stars 492 forks source link

How to add child without updating updated_at in right trees #389

Closed znz closed 3 years ago

znz commented 6 years ago

In after_save :move_to_new_parent, Movecalls update_all with updated_at = :timestamp.

But I do not want to update another tree's items.

For example:

Before:

After:

Update updated_at of 2,8 are acceptable, but updated_at of 4,6 are not desired.

How to stop to update update_at?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.