lib/eco/data/locations/node_diff.rb in eco-helpers-2.7.4 vs lib/eco/data/locations/node_diff.rb in eco-helpers-2.7.12

- old
+ new

@@ -57,11 +57,20 @@ def move? return false unless update? parent_id? end + def unarchive! + @marked_for_unarchived = true + end + + def marked_for_unarchive? + @marked_for_unarchived || false + end + # Has the `archived` property changed and it was `true`? def unarchive? + return true if marked_for_unarchive? return false if archived return false unless update? archived? end