Replace @user with @current_user

This ensures that that we will find any more hidden references
to @user that might be hanging around...
This commit is contained in:
Tom Hughes 2017-07-27 19:44:14 +01:00
parent 24fc94944b
commit ebeea34670

View file

@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
before_action :fetch_body
attr_accessor :current_user
helper_method :current_user
def authorize_web
@ -468,16 +469,6 @@ class ApplicationController < ActionController::Base
[user, pass]
end
# used to get the current logged in user
def current_user
@user
end
# used to set the current logged in user
def current_user=(user)
@user = user
end
# override to stop oauth plugin sending errors
def invalid_oauth_response; end
end