Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/user.rb

Instance Method Summary collapse

Instance Method Details

#validate_password?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/user.rb', line 11

def validate_password?
  password.blank? && password_confirmation.blank? && !self.new_record?
end