diff --git a/README.md b/README.md index 42c92c0e..bf2d64ad 100644 --- a/README.md +++ b/README.md @@ -57,28 +57,28 @@ module.exports = function(environment) { metricsAdapters: [ { name: 'GoogleAnalytics', - environments: ['development', 'production'] + environments: ['development', 'production'], config: { id: 'UA-XXXX-Y' } }, { name: 'Mixpanel', - environments: ['production'] + environments: ['production'], config: { token: '0f76c037-4d76-4fce-8a0f-a9a8f89d1453' } }, { name: 'Segment', - environments: ['production'] + environments: ['production'], config: { key: '4fce-8a0f-a9a8f89d1453' } }, { name: 'LocalAdapter', - environments: ['all'] // default + environments: ['all'], // default config: { foo: 'bar' } diff --git a/app/initializers/metrics.js b/app/initializers/metrics.js index 2ae0c848..7e30cdcf 100644 --- a/app/initializers/metrics.js +++ b/app/initializers/metrics.js @@ -2,7 +2,7 @@ import config from '../config/environment'; export function initialize() { const application = arguments[1] || arguments[0]; - const { metricsAdapters = {} } = config; + const { metricsAdapters = [] } = config; const { environment = 'development' } = config; const options = { metricsAdapters, environment }; diff --git a/package.json b/package.json index 64da1295..69ec94ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-metrics", - "version": "0.5.1", + "version": "0.5.2", "description": "Send data to multiple analytics integrations without re-implementing new API", "directories": { "doc": "doc",