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: 184,050 of 197,207
Downloads: 1,867

Daily

Ranking: 81,756 of 197,176
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
88661,548,103dry-struct

Owners

#GravatarHandle
1iconAliexandr_Andrade