wikiedudashboard

https://github.com/wikieducationfoundation/wikiedudashboard

Ruby

Wiki Education Foundation's Wikipedia course dashboard system

JoinCourse#user_already_enrolled?

For Wiki Ed courses, a user with any CoursesUsers record for the course is
considered to be enrolled already, even if they are not enrolled in the STUDENT role.
Instructors should not be enrolled as students.
For other course types, enrollment in multiple roles is allowed.

Source | Google | Stack overflow

Edit

git clone [email protected]:wikieducationfoundation/wikiedudashboard.git

cd wikiedudashboard

open app/services/join_course.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-JoinCourse-user_already_enrolled--for-pr


# Commit to git

git add app/services/join_course.rbgit commit -m "better docs for JoinCourse#user_already_enrolled?"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-JoinCourse-user_already_enrolled--for-pr

hub pull-request


# Celebrate!