File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,20 @@ def _ct_after_save
42
42
rebuild!
43
43
end
44
44
if public_send ( changes_method ) [ _ct . parent_column_name ] && !@was_new_record
45
+ tmp_previous_mutation_tracker = @previous_mutation_tracker
46
+ tmp_mutation_tracker = @mutation_tracker
47
+ tmp_mutations_from_database = @mutations_from_database
48
+ tmp_mutations_before_last_save = @mutations_before_last_save
49
+
45
50
# Resetting the ancestral collections addresses
46
51
# https://github.com/mceachen/closure_tree/issues/68
47
52
ancestor_hierarchies . reload
48
53
self_and_ancestors . reload
54
+
55
+ @previous_mutation_tracker = tmp_previous_mutation_tracker
56
+ @mutation_tracker = tmp_mutation_tracker
57
+ @mutations_from_database = tmp_mutations_from_database
58
+ @mutations_before_last_save = tmp_mutations_before_last_save
49
59
end
50
60
@was_new_record = false # we aren't new anymore.
51
61
@_ct_skip_sort_order_maintenance = false # only skip once.
You can’t perform that action at this time.
0 commit comments