osem

https://github.com/opensuse/osem

Ruby

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

Event#voted?

Checks if the event has votes
If a user is provided, it checks if the event has votes by the user
====Returns
* +true+ -> If the event has votes (optionally, by the user)
* +false+ -> If the event does not have any votes (optionally, by the user)

Source | Google | Stack overflow

Edit

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

cd osem

open app/models/event.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Event-voted--for-pr


# Commit to git

git add app/models/event.rbgit commit -m "better docs for Event#voted?"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Event-voted--for-pr

hub pull-request


# Celebrate!