Skip to content
Snippets Groups Projects
Commit bc63f160 authored by Cam Saul's avatar Cam Saul
Browse files

just use identity for the default implementations of api-serialize

parent 1c715164
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,8 @@
"Called on all objects being written out by the API. Default implementations return THIS as-is, but models can provide
custom methods to strip sensitive data, from non-admins, etc."))
(extend-protocol IModelInstanceApiSerialize
Object
(api-serialize [this]
this)
nil
(api-serialize [_]
nil))
(extend Object
IModelInstanceApiSerialize {:api-serialize identity})
(extend nil
IModelInstanceApiSerialize {:api-serialize identity})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment