kurko / ember-sync

MIT License
282 stars 28 forks source link

No container in JSONSerializer #32

Open Leooo opened 9 years ago

Leooo commented 9 years ago

I had the issue described in http://stackoverflow.com/questions/21724343/no-container-in-jsonserializer on my app, using an online store initializer as described in the docs. Solution was to get rid of declaring the serializer in CustomOnlineAdapter definition:

var CustomOnlineSerializer = ActiveModelSerializer.extend();
var CustomOnlineAdapter = ActiveModelAdapter.extend({
  //serializer: CustomOnlineSerializer.create(), http://stackoverflow.com/questions/21724343/no-container-in-jsonserializer
}); 

(with ember-cli & Ember 1.11)

kurko commented 9 years ago

Could you send a PR updating the README?