1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 21:29:38 +02:00

Update Intercom configuration to use symbol keys for custom data attributes
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Josh Pigford 2025-03-31 09:39:17 -05:00
parent 83bee295ca
commit 6331788b33

View file

@ -55,9 +55,9 @@ if ENV["INTERCOM_APP_ID"].present? && ENV["INTERCOM_IDENTITY_VERIFICATION_KEY"].
config.user.custom_data = { config.user.custom_data = {
family_id: Proc.new { Current.family.id }, family_id: Proc.new { Current.family.id },
name: Proc.new { Current.user.display_name if Current.user.display_name != Current.user.email }, name: Proc.new { Current.user.display_name if Current.user.display_name != Current.user.email },
role: Proc.new { Current.user.role }, "Role": Proc.new { Current.user.role },
accounts_count: Proc.new { Current.family.accounts.count }, connections: Proc.new { Current.family.accounts.count },
ai_enabled: Proc.new { Current.user.ai_enabled } "AI Enabled": Proc.new { Current.user.ai_enabled }
} }
# == Current company method/variable # == Current company method/variable