X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/dc635b6d39be19a09a428282b6d639d029908df6..575b480d55931d0ad4d4ed435b6166fbcfe23104:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb old mode 100755 new mode 100644 index 64fd71c..78266ad --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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?