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.
Edit
git clone [email protected]:wikieducationfoundation/wikiedudashboard.git
cd wikiedudashboard
open app/services/join_course.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-JoinCourse-user_already_enrolled--for-pr
# Commit to gitgit add app/services/join_course.rbgit commit -m "better docs for JoinCourse#user_already_enrolled?"
# Open pull requestgem 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!