kurko / ember-json-api

JSON API adapter for Ember Data.
MIT License
254 stars 62 forks source link

modelNameFromPayloadKey not called #81

Closed SeyZ closed 9 years ago

SeyZ commented 9 years ago

Here's my serializer:

DS.RESTSerializer.extend({
            modelNameFromPayloadKey: function (payloadKey) {
              return this._super('blabla' + payloadKey);
            }
          });

Using a JsonApiSerializer, the modelNameFromPayloadKey is not called:

JsonApiSerializer.extend({
            modelNameFromPayloadKey: function (payloadKey) {'
              // Not Called
              return this._super('blabla' + payloadKey);
            }
          });
SeyZ commented 9 years ago

This will be fixed after upgrading ember-data to 1.0.0-beta.18. A pull request has already been proposed: https://github.com/kurko/ember-json-api/pull/80