README.md in intercom-rails-0.4.2 vs README.md in intercom-rails-1.0.0

- old
+ new

@@ -238,9 +238,26 @@ :number_of_messages => Proc.new { |app| app.messages.count }, :is_interesting => :is_interesting? } ``` +In some situations you'll want to set some custom company data attribute specific to a request. +You can do this similarly to user data attribute set by using the `intercom_custom_data` helper available in your controllers: + +```ruby +class AppsController < ActionController::Base + def activate + intercom_custom_data.company[:app_activated_at] = Time.now + ... + end + + def destroy + intercom_custom_data.company[:app_deleted_at] = Time.now + ... + end +end +``` + ### Messenger Intercom includes an in-app messenger which allows a user to read messages and start conversations. By default Intercom will add a button that opens the messenger to the page. If you want to customize the style of the link that opens the messenger: