user policies

This commit is contained in:
Mark Moser
2016-09-20 14:22:20 -05:00
parent 12c7e9e77c
commit ead9564fe8
8 changed files with 160 additions and 2 deletions

View File

@ -15,6 +15,12 @@ class User < ApplicationRecord
save
end
# TODO: move to mixin: UserRoles
# define remaining helpers
def admin?
role == 'admin'
end
private
def gen_reset_token