The user model has been modified so that it stores the user object itself in the...
[selectricity] / app / models / user.rb
index 64fd71c544af5ff93c858f871b763ded4842b644..78266ad61d06d3d8586d9c9da5b0e6f1f42f0da6 100755 (executable)
@@ -4,7 +4,8 @@ class User < ActiveRecord::Base
 
   # Virtual attribute for the unencrypted password
   attr_accessor :password
-
+  attr_accessor :current_user
+  
   validates_presence_of     :login, :email
   validates_presence_of     :password,                   :if => :password_required?
   validates_presence_of     :password_confirmation,      :if => :password_required?

Benjamin Mako Hill || Want to submit a patch?