YaleSTC/reservations — pull request #371 by austinczarnecki (2013-06-13 20:48:11+00:00)
Title: 355 356 357 refactoring

#355: `application_setup_controller` and `users_controller` had duplicated methods to set new users. Outsourced into a module and loaded into each controller.

#356: `set_view_mode` in `application_controller` was too redundant. Removed redundant if/else statements.

#357: Removed dead code from activate and deactivate methods in `application_controller` and separated `require_admin` logic into `before_filter`.