Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember.js RC2 deprecation warning: register("store", "main")

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

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

What do I have to change in this minimal app to fix it?

App = Ember.Application.create();

App.Store = DS.Store.extend({
  revision: 11,
  adapter: 'DS.FixtureAdapter'
});
like image 892
wintermeyer Avatar asked Oct 05 '22 13:10

wintermeyer


1 Answers

Installing the newest version of ember-data.js and updating the code to:

App = Ember.Application.create();

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

solves this problem. Thanks @finn-maccool !

like image 114
wintermeyer Avatar answered Oct 16 '22 11:10

wintermeyer