1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 08:08:02 +00:00

Clean up ruby code snippet

This commit is contained in:
jbranchaud
2019-02-05 11:39:38 -06:00
parent eceb1ffa9e
commit e782f0ba19

View File

@@ -26,7 +26,7 @@ the `authenticate` method.
```ruby ```ruby
user = User.find_by(email: user_params[:email]) user = User.find_by(email: user_params[:email])
if(user.authenticate(user_params[:password])) if user.authenticate(user_params[:password])
puts 'That is the correct password!' puts 'That is the correct password!'
else else
puts 'That password did not match!' puts 'That password did not match!'