mikesea/son_of_store_engine — pull request #17 by mikesea (2012-04-29 03:09:16+00:00)
Title: Store admins

Added a bunch of stuff:

- Tests for stores (only thru Thursday's requirements, for the most part)
- Updated /profile to route to user#show, and added a 'Create store' button
- When you create a new store, you're taken to an "admin-view" of the store (this is super light-weight right now)
- Create a store_admins table to manage admins for a particular store; when a new store is created, a store_admin is automatically added using the owner_id column
- You can only view the "admin-view" of a store if you are an admin for that store

The store_admins table will allow us to use the admin flag on the user table as the flag for super_admin access.