Closed znz closed 3 years ago
In after_save :move_to_new_parent, Movecalls update_all with updated_at = :timestamp.
after_save :move_to_new_parent
Move
update_all
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.
updated_at
How to stop to update update_at?
update_at
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.
In
after_save :move_to_new_parent
,Move
callsupdate_all
withupdated_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, butupdated_at
of 4,6 are not desired.How to stop to update
update_at
?