Liking cljdoc? Tell your friends :D

com.timezynk.cancancan.restriction

Derive database query restrictions from abilities.

Derive database query restrictions from abilities.
raw docstring

_!clj

(_! x)

_&clj

(_& x & xs)

_|clj

(_| x & xs)

compileclj

(compile restriction user roles1 modules)

Curries restriction functions with user, roles1 and modules to produce functions which work on [action object instance] arguments.

Curries restriction functions with `user`, `roles1` and `modules` to produce
functions which work on `[action object instance]` arguments.
raw docstring

defrestrictioncljmacro

(defrestriction & xs)

Expands each of its arguments into an implementation of make. Uses the first three parameters as dispatch values. Uses the fourth as return value.

Expands each of its arguments into an implementation of `make`.
Uses the first three parameters as dispatch values.
Uses the fourth as return value.
raw docstring

makecljmultimethod

Converts an ability (i.e. action / object / scope triplet) to a restriction.

Converts an ability (i.e. action / object / scope triplet) to a restriction.
raw docstring

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

× close