dashboard controller

This commit is contained in:
Mark Moser
2016-09-21 17:04:08 -05:00
parent 4a70b795e5
commit 7774a1e3f2
13 changed files with 94 additions and 76 deletions

View File

@ -15,22 +15,19 @@ class User < ApplicationRecord
save
end
# TODO: move to mixin: UserRoles
# Roles
def admin?
'admin' == role
end
# TODO: move to mixin: UserRoles
def manager?
%w(admin manager).include? role
end
# TODO: move to mixin: UserRoles
def recruiter?
'recruiter' == role
end
# TODO: move to mixin: UserRoles
def reviewer?
'reviewer' == role
end