Sha256: d0b00d570a3029c134f201b8d608dbc99acefa7c58aa651dd53e55e9023c69cb
Contents?: true
Size: 1.97 KB
Versions: 2
Compression:
Stored size: 1.97 KB
Contents
IntercomRails.config do |config| # == Intercom app_id # config.app_id = "<%= @app_id %>" # == Intercom secret key # This is reuqired to enable secure mode, you can find it on your Intercom # "security" configuration page. # <%- if @api_secret -%> config.api_secret = "<%= @api_secret %>" <%- else -%> # config.api_secret = '...' <%- end -%> # == Intercom API Key # This is required for some Intercom rake tasks like importing your users; # you can generate one at https://www.intercom.io/apps/api_keys. # <%- if @api_key -%> config.api_key = "<%= @api_key %>" <%- else -%> # config.api_key = "..." <%- end -%> # == Curent user name # The method/variable that contains the logged in user in your controllers. # If it is `current_user` or `@user`, then you can ignore this # # config.current_user = Proc.new { current_user } # == User model class # The class which defines your user model # # config.user_model = Proc.new { User } # == Custom Data # A hash of additional data you wish to send about your users. # You can provide either a method name which will be sent to the current # user object, or a Proc which will be passed the current user. # # config.custom_data = { # 'plan' => Proc.new { |current_user| current_user.plan.name }, # 'favorite_color' => :favorite_color # } # == Inbox Style # This enables the Intercom inbox which allows your users to read their # past conversations with your app, as well as start new ones. It is # disabled by default. # * :default shows a small tab with a question mark icon on it # * :custom attaches the inbox open event to an anchor with an # id of #Intercom. # # config.inbox.style = :default # config.inbox.style = :custom # == Inbox Counter # If you're using the custom inbox style, you can request that Intercom # insert an `em` element into your anchor with the count of unread messages # # config.inbox.counter = true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
intercom-rails-0.1.1 | lib/rails/generators/intercom/config/intercom.rb.erb |
intercom-rails-0.1.0 | lib/rails/generators/intercom/config/intercom.rb.erb |