Open joshsmith opened 8 years ago
Per #332 the current canary
library is causing two records to load. bodyguard
will not.
Outline of what needs to be done here
models/ability.ex
into individual policy classes, with minor tweakshandle_create/_update/_delete
Should probably be done with adding ja_resource into controllers that don't have it yet
I'll tackle #349 first actually today, if I can get to it in time.
0.3.0 of bodyguard supports permitted attributes. It's not as flexible as changesets, but we should look into using those when we find the time.
Still not sure how it works in conjunction with ja_resource
Another library came to my attention at ElixirConf that looks a lot more explicit in its implementation than
canary
and maps closer toPundit
thancancancan
. It's namedbodyguard
.We should do a PR to switch from one to the other. Should be relatively trivial considering the similarity of
can?/3
.