mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Clean up ruby code snippet
This commit is contained in:
@@ -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!'
|
||||
|
||||
Reference in New Issue
Block a user