Created
May 3, 2012 20:05
-
-
Save scottmessinger/2588869 to your computer and use it in GitHub Desktop.
invites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ability | |
include CanCan::Ability | |
def employee_abilities(user) | |
# [ code ] | |
# I imagine the invite abilities being set just like the group | |
# viewer abilities and supervisor abilities are set now. | |
supervisor_abilities(user) if user.employee.supervisor? | |
group_viewer_abilities(user) | |
invite_abilities(user) | |
end | |
def invite_abilities(user) | |
# [ code ] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invites | |
user_id | |
invited_user_id | |
permission_level | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment