define('ember-resource-metadata/serializer-mixin', ['exports'], function (exports) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = Ember.Mixin.create({
    _resourceMetadata: Ember.inject.service('resource-metadata'),
    serialize: function serialize(snapshot, options) {
      var json = this._super(snapshot, options);
      var service = this.get('_resourceMetadata');
      var meta = service.peek(snapshot);
      if (meta) {
        json.data.meta = Ember.assign({}, json.data.meta, meta);
      }
      return json;
    }
  });
});