Commit f3206947 authored by hh1966's avatar hh1966
Browse files

Check if deleted_at is nil in export

parent 67b0cdd7
......@@ -222,6 +222,11 @@ module Export
@data[type] = {}
end
# check if deleted_at is nil
if instance.respond_to?('deleted_at') and not instance.deleted_at.nil?
raise 'Instance with non nil deleted_at in export'
end
@data[type][uuid] = instance.as_json().except('id').merge(update)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment