Created
October 10, 2009 19:29
-
-
Save techpeace/207093 to your computer and use it in GitHub Desktop.
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
# Method to assist in finding out what group a user is in | |
def in_group?(group_name) | |
self.user_groups.include?(UserGroup.find_by_name(group_name)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment