lib/parentry/strategy/array/instance_methods.rb in parentry-1.3.0 vs lib/parentry/strategy/array/instance_methods.rb in parentry-1.4.0
- old
+ new
@@ -6,9 +6,10 @@
input
end
def compute_parentry
return [] unless persisted?
+
parent.present? ? parent.parentry + [id] : [id]
end
def cascade_parentry
old_path, new_path = saved_changes[parentry_column]