From 6331788b33e5db85d7827d9101aaf0f628b78f8a Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Mon, 31 Mar 2025 09:39:17 -0500 Subject: [PATCH] Update Intercom configuration to use symbol keys for custom data attributes --- config/initializers/intercom.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/initializers/intercom.rb b/config/initializers/intercom.rb index 3824b872..d35ac77f 100644 --- a/config/initializers/intercom.rb +++ b/config/initializers/intercom.rb @@ -55,9 +55,9 @@ if ENV["INTERCOM_APP_ID"].present? && ENV["INTERCOM_IDENTITY_VERIFICATION_KEY"]. config.user.custom_data = { family_id: Proc.new { Current.family.id }, name: Proc.new { Current.user.display_name if Current.user.display_name != Current.user.email }, - role: Proc.new { Current.user.role }, - accounts_count: Proc.new { Current.family.accounts.count }, - ai_enabled: Proc.new { Current.user.ai_enabled } + "Role": Proc.new { Current.user.role }, + connections: Proc.new { Current.family.accounts.count }, + "AI Enabled": Proc.new { Current.user.ai_enabled } } # == Current company method/variable