Added set_user to before_filter
Added separation into private and public methods
Refactored checking TOS to check_tos(user) method and into ApplicationController (in case something else wants to ever use it, which it might)
Fixed the 'is equipment_object_id empty?' condition
Fixed indent and comments
Re-factored the checkout-procedure checking
Added set_user to before_filter
Added separation into private and public methods
Refactored checking TOS to check_tos(user) method and into ApplicationController (in case something else wants to ever use it, which it might)
Fixed the 'is equipment_object_id empty?' condition
Fixed indent and comments
Re-factored the checkout-procedure checking
Rebasing off development to 666_refactor_checkin_checkout
Renamed method more descriptively and simplified its logic
Reindented, wrapped saving in transaction, simplified logic
Refactored #checkin
Factored out the procedure-checking and notes-altering logic
Used factored methods instead of inline logic
Merge branch 'development' into 666_refactor_checkin_checkout
small optimization