From 09ba878519c73d517fa88fc1c2cad1d1924fdf84 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 27 Jul 2017 10:31:31 +0100 Subject: [PATCH] Convert @user to current_user --- 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 049f6e02e..a367a1b0a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -49,7 +49,7 @@ class ApplicationController < ActionController::Base end def require_oauth - @oauth = @user.access_token(OAUTH_KEY) if current_user && defined? OAUTH_KEY + @oauth = current_user.access_token(OAUTH_KEY) if current_user && defined? OAUTH_KEY end ## -- 2.39.5