[deploy] Track current_user ID in Honeycomb (#7915)

This commit is contained in:
Molly Struve 2020-05-18 09:36:18 -05:00 committed by GitHub
parent b5885f6c29
commit 6d6f7086e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,10 @@ class ApplicationController < ActionController::Base
end
def authenticate_user!
return if current_user
if current_user
Honeycomb.add_field("current_user_id", current_user.id)
return
end
respond_to do |format|
format.html { redirect_to "/enter" }