Skip to content

Instantly share code, notes, and snippets.

@techpeace
Created October 10, 2009 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techpeace/207093 to your computer and use it in GitHub Desktop.
Save techpeace/207093 to your computer and use it in GitHub Desktop.
# 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