The user model has been modified so that it stores the user object itself in the...
author<jlsharps@mit.edu> <>
Tue, 7 Aug 2007 23:16:04 +0000 (19:16 -0400)
committer<jlsharps@mit.edu> <>
Tue, 7 Aug 2007 23:16:04 +0000 (19:16 -0400)
commitfeb38c08f5cbda03d540aef83fc056070e4b7b68
tree182c3a46bec6b5b2d76e20a462a83d1e983ac637
parenteaf661eb6a8571bc24b180cfc731f3b9b38a8fff
The user model has been modified so that it stores the user object itself in the session[:user]. Session[:user_id] fulfills the purpose of holding the specific id. the test files were also modified to account for the changes. In addition, a couple lines in the SiteController#index method were updated tp utilize new funtionality of ActiveRecord. The changes I made to the Authenitcated user library is available here:technoweenie.stikipad.com/plugins/show/Storing+the+User+Model+in+the+Session.
app/controllers/account_controller.rb
app/controllers/site_controller.rb
app/models/user.rb
lib/authenticated_system.rb
lib/authenticated_test_helper.rb
test/functional/account_controller_test.rb

Benjamin Mako Hill || Want to submit a patch?