]> projects.mako.cc - selectricity-live/blobdiff - app/models/user.rb
* Tighter validation, closed a number of crashes due to invalid data
[selectricity-live] / app / models / user.rb
old mode 100755 (executable)
new mode 100644 (file)
index 64fd71c..78266ad
@@ -4,7 +4,8 @@ class User < ActiveRecord::Base
 
   # Virtual attribute for the unencrypted password
   attr_accessor :password
 
   # 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?
   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?