mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 16:19:40 +02:00
Add custom data to Intercom configuration
This commit is contained in:
parent
dc17a0a298
commit
83bee295ca
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +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 },
|
||||||
|
ai_enabled: Proc.new { Current.user.ai_enabled }
|
||||||
}
|
}
|
||||||
|
|
||||||
# == Current company method/variable
|
# == Current company method/variable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue