1337807/son_of_store_engine — pull request #13 by JanKoszewski (2012-04-28 01:03:08+00:00)
Title: Adding multiple store admins

Added: migration for store_users, model for store_users, admin/users controller, admin users index view

Changed: store model, users model, ability model, notification mailers, admin dashboard view, config/routes, admin_users_requests spec, cart_requests spec, store_admin_requests spec, store_requests spec

Summary:
Added abilities to "manage" and otherwise add or remove sonofstoreengine users as admins of a store from the "manager users" page under the admin dashboard for a store. Changed the store to users relationship from one to many to many to many, adding the migrations and store_users model to accomplish this. Added an admin::users controller and corresponding routes to handle the new page and new admin_users_index view page to accomodate adding and removing users. Added corresponding tests to cover added functionality to 100% coverage, and altered corresponding users specs to allow for the new store-users relationship. Cane and reek tested clean at time of push.