Commit f5471581 by Đường Sỹ Hoàng

Replaced negative operator in line 15

parent 0d5714a0
...@@ -12,7 +12,7 @@ module SessionsHelper ...@@ -12,7 +12,7 @@ module SessionsHelper
# Return true if the user is logged in, false otherwise . # Return true if the user is logged in, false otherwise .
def logged_in? def logged_in?
!current_user.nil? current_user.present?
end end
# Logs out the current user # Logs out the current user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment