Commit 94a89408 by Đường Sỹ Hoàng

Replaced negative operator

parent d1af87fe
...@@ -9,6 +9,6 @@ class ActiveSupport::TestCase ...@@ -9,6 +9,6 @@ class ActiveSupport::TestCase
#Returns true if a test user is logged in. #Returns true if a test user is logged in.
def is_logged_in? def is_logged_in?
!session[:user_id].nil? session[:user_id].present?
end end
end end
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