README.mdown in intercom-rails-0.2.27 vs README.mdown in intercom-rails-0.2.28

- old
+ new

@@ -37,10 +37,11 @@ If it's not working make sure: * You've generated a config file with your `app_id` as detailed above. * Your user object responds to an `id` or `email` method. * Your current user is accessible in your controllers as `current_user` or `@user`, if not in `config/initializers/intercom.rb`: +* If you want the Intercom Messenger to be available when there is no current user, set `config.include_for_logged_out_users = true` in your config and sign up for the [Acquire](https://www.intercom.io/live-chat) package. ```ruby config.user.current = Proc.new { current_user_object } ``` @@ -113,31 +114,32 @@ :number_of_messages => Proc.new { |app| app.messages.count }, :is_interesting => :is_interesting? } ``` -### Inbox -Intercom includes an inbox which allows a user to read their past conversations with your app, and start new conversations. It's hidden by default, you can include a link to open it by adding a line to `config/initializers/intercom.rb`: +### Live Chat / Acquire +With our [Acquire package](https://www.intercom.io/live-chat), Intercom Messenger now works with logged out users and visitors to your web site. Include the Intercom snippet on every page by setting: -To use the default link style, which requires no extra config and includes a small question mark icon in the bottom right corner of your app: - ```ruby - config.inbox.style = :default + config.include_for_logged_out_users = true ``` -If you want to customize the style of the link that opens the inbox: +### 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: + ```ruby config.inbox.style = :custom ``` -This option attaches the inbox open event to the click event of an element with an id of `Intercom`. So the simplest option here would be to add something like the following to your layout: +With this option enabled, clicks on any element with an id of `Intercom` will open the messenger. So the simplest option here would be to add something like the following to your layout: ```html <a id="Intercom">Support</a> ``` -You can read more about configuring the Inbox within Intercom (Config menu -> Inbox Link). +You can read more about configuring the messenger in your applications settings, within Intercom. ### Environments By default Intercom will be automatically inserted in development and production Rails environments. If you would like to specify the environments in which Intercom should be inserted, you can do so as follows: