oismail91/Depot — pull request #9 by oismail91 (2014-01-20 15:45:07+00:00)
Title: Task i logging in

Put in a has_secure_passwrod to store an encrypted version of the password into the database. Controlled access to the administration functions using before action callbacks to invoke an authorize method. Used rails console to interact directly with model. Saw how a transaction can help prevent deleting the last user.