export default {
  name: 'rails-csrf',
  initialize: function(container, app) {
    app.inject('route',      'csrf', 'service:csrf');
    app.inject('controller', 'csrf', 'service:csrf');
  }
};

export default {
  name: 'rails-csrf',
  initialize: function() {
    let app = arguments[1] || arguments[0];
    app.inject('route',      'csrf', 'service:csrf');
    app.inject('controller', 'csrf', 'service:csrf');
  }
};

Change initializer arity for Ember 2.x
Change initializer arity for Ember 2.x
