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

Add accounts count to Intercom

This commit is contained in:
Josh Pigford 2024-10-19 14:54:51 -05:00
parent 3c0fdd84ee
commit 07264e86cb

View file

@ -82,6 +82,9 @@ if ENV["INTERCOM_APP_ID"].present? && ENV["INTERCOM_IDENTITY_VERIFICATION_KEY"].
# :number_of_messages => Proc.new { |app| app.messages.count },
# :is_interesting => :is_interesting?
# }
config.company.custom_data = {
accounts_count: Proc.new { |family| family.accounts.count }
}
# == Company Plan name
# This is the name of the plan a company is currently paying (or not paying) for.