Authentication: using "devise" gem
Authorization: using "CanCanCan" gem
App has 3 roles:
- admin:
- can do all actions for Article, User, Comment models
- moderator:
- can create and delete any Comment
- can show, create, update and delete own User
- user:
- can show, create, update and delete own User