proof of concept for pundit
-got the pundit policy file working
-verified that it blocked/allowed users with correct permissions
-fixed a bug in user model where the magic strings had been poorly defined
-
dev
1 parent 0b1e3cb commit 936e6bd6c61c4e4295f31fd2b7fcb346b749be2d
@xsrust xsrust authored on 15 Aug 2016
Showing 4 changed files
View
app/controllers/application_controller.rb
View
app/controllers/token_permission_types_controller.rb
View
app/models/user.rb
View
app/policies/token_permission_type_policy.rb 0 → 100644