fix authenticate_user method

This commit is contained in:
Alexander Machehin 2014-04-09 14:41:56 +06:00
parent 80cd7bcd52
commit 0000487cf8
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ class ApplicationController < ActionController::Base
def authenticate_user def authenticate_user
if user = find_user_by_token if user = find_user_by_token
sign_in user, store: false sign_in user, store: false
else
super
end end
end end