From 6d6f7086e564d570d8ec8f6f523ba375d3454e92 Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Mon, 18 May 2020 09:36:18 -0500 Subject: [PATCH] [deploy] Track current_user ID in Honeycomb (#7915) --- app/controllers/application_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 15e22afb4..8130e77f7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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" }