X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/dc635b6d39be19a09a428282b6d639d029908df6..cf4234876994cb4b7e09cdd116e092424d9f4951:/app/models/user.rb?ds=sidebyside 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?