lib/eco/data/locations/node_diff.rb in eco-helpers-3.0.4 vs lib/eco/data/locations/node_diff.rb in eco-helpers-3.0.5
- old
+ new
@@ -48,16 +48,18 @@
# Has any of `id` or `name` properties changed?
def id_name?
return true if id?
return true if name?
+
classifications?
end
# Has the parent id changed?
def move?
return false unless update?
+
parent_id?
end
def unarchive!
@marked_for_unarchived = true
@@ -70,10 +72,11 @@
# 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
# Has the `archived` property changed and it was `false`?
def archive?(validate: true)
@@ -84,9 +87,10 @@
msg << "(it's being inserted). "
msg << "It should have been discarded as a diff"
raise msg if validate && archived && insert?
return true if del?
+
archived
end
end
end