File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,23 @@ config.company.custom_data = {
240
240
}
241
241
```
242
242
243
+ In some situations you'll want to set some custom company data attribute specific to a request.
244
+ You can do this similarly to user data attribute set by using the ` intercom_custom_data ` helper available in your controllers:
245
+
246
+ ``` ruby
247
+ class AppsController < ActionController ::Base
248
+ def activate
249
+ intercom_custom_data.company[:app_activated_at ] = Time .now
250
+ ...
251
+ end
252
+
253
+ def destroy
254
+ intercom_custom_data.company[:app_deleted_at ] = Time .now
255
+ ...
256
+ end
257
+ end
258
+ ```
259
+
243
260
### Messenger
244
261
Intercom includes an in-app messenger which allows a user to read messages and start conversations.
245
262
You can’t perform that action at this time.
0 commit comments