Skip to content

Commit

Permalink
Merge pull request #3362 from wecc/new-serializer-api-deprecation
Browse files Browse the repository at this point in the history
Improve deprecation for not using the new Serializer API
  • Loading branch information
bmac committed Jun 16, 2015
2 parents 5ccad07 + e2f9d1f commit 900d378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/ember-data/lib/initializers/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default function initializeStore(registry, application) {
]);

// new go forward paths
registry.register('serializer:-default', JSONSerializer);
registry.register('serializer:-rest', RESTSerializer);
registry.register('serializer:-default', JSONSerializer.extend({ isNewSerializerAPI: true }));
registry.register('serializer:-rest', RESTSerializer.extend({ isNewSerializerAPI: true }));
registry.register('adapter:-rest', RESTAdapter);

registry.register('adapter:-json-api', JSONAPIAdapter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ Ember.merge(ContainerInstanceCache.prototype, {
let instance = this.instanceFor(lookupKey);

if (instance) {
if (fallback === '-default') {
instance.set('isNewSerializerAPI', true);
}
return instance;
}
}
Expand Down

0 comments on commit 900d378

Please sign in to comment.