mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Intercom data update
This commit is contained in:
parent
aa16807c6c
commit
6b46831199
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ if ENV["INTERCOM_APP_ID"].present? && ENV["INTERCOM_IDENTITY_VERIFICATION_KEY"].
|
|||
# user object, or a Proc which will be passed the current user.
|
||||
#
|
||||
config.user.custom_data = {
|
||||
family_id: Proc.new { |current_user| current_user.family.id }
|
||||
family_id: Proc.new { Current.family.id },
|
||||
name: Proc.new { Current.user.display_name if Current.user.display_name != Current.user.email }
|
||||
}
|
||||
|
||||
# == Current company method/variable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue