yakut-project/yakut — pull request #26 by utdemir (2013-09-10 22:53:42+00:00)
Title: Add role field to user model

Roles

1. student
2. teacher

Rules

* All user will be student after register.
* Admin can change user role to teacher.

Methods

- Define `current_role` method to application_controllers.rb