diff --git a/ghost/admin/serializers/post.js b/ghost/admin/serializers/post.js index ba8704bff6..e668ac22eb 100644 --- a/ghost/admin/serializers/post.js +++ b/ghost/admin/serializers/post.js @@ -30,21 +30,6 @@ var PostSerializer = ApplicationSerializer.extend(DS.EmbeddedRecordsMixin, { return this._super.apply(this, arguments); }, - keyForAttribute: function (attr) { - return attr; - }, - - keyForRelationship: function (relationshipName) { - // this is a hack to prevent Ember-Data from deleting our `tags` reference. - // ref: https://github.com/emberjs/data/issues/2051 - // @TODO: remove this once the situation becomes clearer what to do. - if (relationshipName === 'tags') { - return 'tag'; - } - - return relationshipName; - }, - serializeIntoHash: function (hash, type, record, options) { options = options || {}; options.includeId = true; diff --git a/ghost/admin/serializers/user.js b/ghost/admin/serializers/user.js index 2ee6a886b0..b83b0b52c7 100644 --- a/ghost/admin/serializers/user.js +++ b/ghost/admin/serializers/user.js @@ -13,21 +13,6 @@ var UserSerializer = ApplicationSerializer.extend(DS.EmbeddedRecordsMixin, { delete payload[pluralizedRoot]; return this._super.apply(this, arguments); - }, - - keyForAttribute: function (attr) { - return attr; - }, - - keyForRelationship: function (relationshipName) { - // this is a hack to prevent Ember-Data from deleting our `tags` reference. - // ref: https://github.com/emberjs/data/issues/2051 - // @TODO: remove this once the situation becomes clearer what to do. - if (relationshipName === 'roles') { - return 'role'; - } - - return relationshipName; } });