Permalink
Browse files

Changing a check for nil or empty to just check for blank

  • Loading branch information...
1 parent fd893ea commit 63fd8e7f6af1ec78dde024a380222e9a3f668ce1 @carols10cents carols10cents committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/user.rb
View
@@ -341,7 +341,7 @@ def self.authenticate(username, pass)
# Edit profile information
def update_profile!(params)
- unless params[:password].nil? or params[:password].empty?
+ unless params[:password].blank?
if params[:password] == params[:password_confirm]
self.password = params[:password]
self.save

0 comments on commit 63fd8e7

Please sign in to comment.