RC2 leak warning Ember.js: case ("store", "main")

After upgrading to Ember.js RC2, I get the following failure warning:

DEPRECATION: register("store", "main") is now deprecated in-favour of register("store:main");

What do I need to change in this minimal application to fix it?

App = Ember.Application.create();

App.Store = DS.Store.extend({
  revision: 11,
  adapter: 'DS.FixtureAdapter'
});
+5
source share
1 answer

Installing the latest version ember-data.jsand updating the code to:

App = Ember.Application.create();

App.Store = DS.Store.extend({
  revision: 12,
  adapter: 'DS.FixtureAdapter'
});

solves this problem. Thanks @ finn-maccool!

+4
source

All Articles