I'm working through the Ruby on Rails tutorial, and I'm curious about this codeblock:
if remember_digest.nil?
false
else
BCrypt::Password.new(remember_digest).is_password?(remember_token)
end
is there a difference between if remember_digest.nil?
and if remember_digest == nil
, or is this just the author's preference?