Skip to content

Commit

Permalink
Changing check for nil to check for blank
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Nov 22, 2012
1 parent 67d0f06 commit fd893ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Expand Up @@ -409,7 +409,7 @@ def no_malformed_username
end

def email_already_confirmed
return if self.email.nil?
return if self.email.blank?
if User.where(:email => self.email,
:email_confirmed => true,
:id.ne => self.id).count > 0
Expand Down

0 comments on commit fd893ea

Please sign in to comment.