X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/dc635b6d39be19a09a428282b6d639d029908df6..212820ba71e7fce006507fe1ce233ff12875510b:/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?