Liking cljdoc? Tell your friends :D

com.fulcrologic.rad.middleware.save-middleware


rewrite-valueclj/smultimethod

[save-env ident save-diff]

Given the save-env, ident of an entity, and incoming save diff (map from :before to :after for each changed attribute): Return an updated save-diff. The default method for this simply returns save-diff. Returning nil from this method will have the effect of removing all values for ident from the save.

[save-env ident save-diff]

Given the save-env, ident of an entity, and incoming save diff (map from :before to :after for each
changed attribute): Return an updated save-diff.  The default method for this simply returns save-diff.
Returning nil from this method will have the effect of removing all values for `ident` from the save.
sourceraw docstring

rewrite-valuesclj/s

(rewrite-values pathom-env)

Rewrite the delta in ::form/params of save-env. Returns the new save-env.

Rewrite the delta in ::form/params of save-env. Returns the new save-env.
sourceraw docstring

wrap-rewrite-valuesclj/s

(wrap-rewrite-values handler)

Middleware that allows the distribution of incoming save diff rewrite across models. Should be at the bottom (early side) of the middleware if used.

Middleware that allows the distribution of incoming save diff rewrite across models. Should be at the bottom
(early side) of the middleware if used.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close