Exygy/rails-project-manager — pull request #5 by dstavis (2014-08-15 18:36:16+00:00)
Title: Admin

Step 4 completed.

Added "role" integer column to "User" schema.
Set my role to 100 (the number that corresponds to the admin role)
Made access firewall permit admins for reading and writing (viewing, editing, and deleting)
Refactored access firewall into single responsibility methods
Made a test user, and messed with his projects from my admin account
~Success!~

4. Anyone who has a user role of "admin" (user.role == User::ROLE[:admin]) should be able to view, create, and edit any projects. Create a user and set yourself to be an admin using the rails console.