Sha256: fe2b7c05e14fe179d79373bb13095793a39880bd7e1a6ffc3231683b93869c1e

Contents?: true

Size: 1003 Bytes

Versions: 1

Compression:

Stored size: 1003 Bytes

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 }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
intercom-rails-0.0.8 lib/rails/generators/intercom/config/intercom.rb.erb