1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +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
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!'
else
puts 'That password did not match!'