Remove New Relic

This commit is contained in:
Sebastian Serth
2022-04-29 22:53:12 +02:00
parent 32b818a07a
commit 2ce9c4258a
7 changed files with 0 additions and 229 deletions

View File

@ -15,8 +15,6 @@ class ApplicationController < ActionController::Base
rescue_from ActionController::InvalidAuthenticityToken, with: :render_csrf_error
def current_user
::NewRelic::Agent.add_custom_attributes(external_user_id: session[:external_user_id],
session_user_id: session[:user_id])
@current_user ||= ExternalUser.find_by(id: session[:external_user_id]) || login_from_session || login_from_other_sources || nil
end