osem

https://github.com/opensuse/osem

Ruby

Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.

User#get_roles

Gets the roles of the user, groups them by role.name and returns the resource(s) of each role
====Returns
* +Hash+ * ->  e.g. 'organizer' =>  [conf1, conf2]

Source | Google | Stack overflow

Edit

git clone [email protected]:opensuse/osem.git

cd osem

open app/models/user.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-User-get_roles-for-pr


# Commit to git

git add app/models/user.rbgit commit -m "better docs for User#get_roles"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-User-get_roles-for-pr

hub pull-request


# Celebrate!