From 6a4bc922bd491d10fba49b4a82f8846c63b46d8d Mon Sep 17 00:00:00 2001 From: relotnek Date: Tue, 11 Mar 2014 20:40:10 -0400 Subject: [PATCH] added user lookup in application controller by auth_token --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7590751..ce73728 100755 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base private def current_user - @current_user ||= User.find_by_user_id(session[:user_id].to_s) + @current_user ||= User.find_by_auth_token!(cookies[:auth_token].to_s) end def authenticated