Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hh1966
chemotion_eln_server
Commits
f3206947
Commit
f3206947
authored
Mar 13, 2019
by
hh1966
Browse files
Check if deleted_at is nil in export
parent
67b0cdd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/export/export_collections.rb
View file @
f3206947
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment