Skip to content

Configuration Options

rogeliog edited this page Oct 3, 2012 · 3 revisions

NOTE: All of the code in this section should be added within an Innsights.setup block.

Configuration options are set under the config block

config do
end

Specify configuration options for certain environments.

config :test, :development do     
end

Queue system

Default behavior:

No queue system will be used to send the actions

Customization:

  • Resque: This require you to have resque dependencies installed and resque workers running.
config do
  queue :resque
end
  • Delayed_job: This require you to have delayed_job dependencies installed and delayed_job workers running.
config do
  queue :delay_job
end

Enable and disable reports

Reporting actions to Innsights can be either enabled or disabled. Report to insights is enabled by default.

Customization

config do
  enable false
end

Enter to test mode

Changes the Innsights url to a pow url ('innsights.dev/')

config :development do
  mode :test
end

Set up your credentials

credentials 'app' => application-subdomain, 
            'token' => application-token              

Specify the environment

Enviroment defaults to the current Rails or Rack environment.

Customization

  environment 'development'