diff options
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/node.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index 188b6c17..d6fe32ff 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -375,6 +375,9 @@ class Node < ApplicationRecord | |||
| 375 | raise ActiveRecord::RecordInvalid.new(self) | 375 | raise ActiveRecord::RecordInvalid.new(self) |
| 376 | end | 376 | end |
| 377 | 377 | ||
| 378 | guard_live_change!(current_user, | ||
| 379 | :target_path => [new_parent.unique_name.presence, slug].compact.join("/")) | ||
| 380 | |||
| 378 | ActiveRecord::Base.transaction do | 381 | ActiveRecord::Base.transaction do |
| 379 | path_before = unique_name | 382 | path_before = unique_name |
| 380 | move_to_child_of(new_parent) | 383 | move_to_child_of(new_parent) |
