Categories: None [Edit]

role_plays

https://rubygems.org/gems/role_plays
https://github.com/Alexander-Andrade/role_plays
RolePlays turns a policy into one readable class per resource, built and asked explicitly the way Pundit and Action Policy policies are, with its rules declared rather than defined method by method as in CanCanCan: every role declares the actions it may take, the attributes it may submit and the scopes it may read, all resolved with a shared :any fallback. The policy is told the role name rather than a user, so the same rules answer for a request, a background job or a spec.

Total

Ranking: 183,160 of 196,584
Downloads: 1,843

Daily

Ranking: 31,192 of 196,552
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
88860,289,698dry-struct

Owners

#GravatarHandle
1iconAliexandr_Andrade