ember-data-source 2.5.0.beta.2 → 2.5.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd9d7b3cd75782f3329927bde7511c099b3c99df
4
- data.tar.gz: 64596218e86976d65b5b82575944116c5d8193a4
3
+ metadata.gz: 15e1481227df910e440b0197b8ccb2d87c6a69c6
4
+ data.tar.gz: 4a14e14326fc575175a6c84d89bf05ceb686607a
5
5
  SHA512:
6
- metadata.gz: 0b4ddfc6ccebe6d73a0fb478d2974f647338b60e731ea7c70274cfa7c804226d62dd534603fc71c1d4dce8f4e1990a8dd4bee2aad0384fbec39fb0e152144b5e
7
- data.tar.gz: ff4367d640a17f2fe70223474aefa0420bc69a42fe53f1b2c7e7852f1630b7d46501b4736b0a4b3a28bd8cc93409cb5e8c0a4e58409912837038022868dedeb6
6
+ metadata.gz: 1fbc70f08bc3ecda1d05a214037daa015e98f052da7f5d1afaba8a162a3d0660a3bf337f10fd8c6a96f38c57039d10f492ae0c053b94258600c71e99a440aefb
7
+ data.tar.gz: 51821ca18234ae5ab4af0b1d038a8c65ef337dd7f44f7328e5ec757002618cd64d04671cd60904c8ca032427045943512b732977d7b5e0a1a04b503cf48da33d
@@ -6,7 +6,7 @@
6
6
  * @copyright Copyright 2011-2016 Tilde Inc. and contributors.
7
7
  * Portions Copyright 2011 LivingSocial Inc.
8
8
  * @license Licensed under MIT license (see license.js)
9
- * @version 2.5.0-beta.2
9
+ * @version 2.5.0-beta.3
10
10
  */
11
11
 
12
12
  var define, requireModule, require, requirejs;
@@ -2248,7 +2248,7 @@ define("ember-data/-private/system/model/internal-model", ["exports", "ember", "
2248
2248
  var get = _ember.default.get;
2249
2249
  var set = _ember.default.set;
2250
2250
  var copy = _ember.default.copy;
2251
- var merge = _ember.default.merge;
2251
+ var assign = _ember.default.assign || _ember.default.merge;
2252
2252
 
2253
2253
  var _extractPivotNameCache = new _emberDataPrivateSystemEmptyObject.default();
2254
2254
  var _splitOnDotCache = new _emberDataPrivateSystemEmptyObject.default();
@@ -2441,7 +2441,7 @@ define("ember-data/-private/system/model/internal-model", ["exports", "ember", "
2441
2441
 
2442
2442
  setupData: function (data) {
2443
2443
  var changedKeys = this._changedKeys(data.attributes);
2444
- merge(this._data, data.attributes);
2444
+ assign(this._data, data.attributes);
2445
2445
  this.pushedData();
2446
2446
  if (this.record) {
2447
2447
  this.record._notifyProperties(changedKeys);
@@ -2553,7 +2553,7 @@ define("ember-data/-private/system/model/internal-model", ["exports", "ember", "
2553
2553
  var oldData = this._data;
2554
2554
  var currentData = this._attributes;
2555
2555
  var inFlightData = this._inFlightAttributes;
2556
- var newData = merge(copy(inFlightData), currentData);
2556
+ var newData = assign(copy(inFlightData), currentData);
2557
2557
  var diffData = new _emberDataPrivateSystemEmptyObject.default();
2558
2558
 
2559
2559
  var newDataKeys = Object.keys(newData);
@@ -2889,9 +2889,9 @@ define("ember-data/-private/system/model/internal-model", ["exports", "ember", "
2889
2889
  this.didCleanError();
2890
2890
  var changedKeys = this._changedKeys(data);
2891
2891
 
2892
- merge(this._data, this._inFlightAttributes);
2892
+ assign(this._data, this._inFlightAttributes);
2893
2893
  if (data) {
2894
- merge(this._data, data);
2894
+ assign(this._data, data);
2895
2895
  }
2896
2896
 
2897
2897
  this._inFlightAttributes = new _emberDataPrivateSystemEmptyObject.default();
@@ -3021,8 +3021,8 @@ define("ember-data/-private/system/model/internal-model", ["exports", "ember", "
3021
3021
  var keys = Object.keys(updates);
3022
3022
  var length = keys.length;
3023
3023
 
3024
- original = merge(new _emberDataPrivateSystemEmptyObject.default(), this._data);
3025
- original = merge(original, this._inFlightAttributes);
3024
+ original = assign(new _emberDataPrivateSystemEmptyObject.default(), this._data);
3025
+ original = assign(original, this._inFlightAttributes);
3026
3026
 
3027
3027
  for (i = 0; i < length; i++) {
3028
3028
  key = keys[i];
@@ -5574,12 +5574,12 @@ define("ember-data/-private/system/record-arrays/record-array", ["exports", "emb
5574
5574
  /**
5575
5575
  @module ember-data
5576
5576
  */
5577
- define('ember-data/-private/system/references', ['exports', '-private/system/references/record', '-private/system/references/belongs-to', '-private/system/references/has-many'], function (exports, _privateSystemReferencesRecord, _privateSystemReferencesBelongsTo, _privateSystemReferencesHasMany) {
5578
- exports.RecordReference = _privateSystemReferencesRecord.default;
5579
- exports.BelongsToReference = _privateSystemReferencesBelongsTo.default;
5580
- exports.HasManyReference = _privateSystemReferencesHasMany.default;
5577
+ define('ember-data/-private/system/references', ['exports', 'ember-data/-private/system/references/record', 'ember-data/-private/system/references/belongs-to', 'ember-data/-private/system/references/has-many'], function (exports, _emberDataPrivateSystemReferencesRecord, _emberDataPrivateSystemReferencesBelongsTo, _emberDataPrivateSystemReferencesHasMany) {
5578
+ exports.RecordReference = _emberDataPrivateSystemReferencesRecord.default;
5579
+ exports.BelongsToReference = _emberDataPrivateSystemReferencesBelongsTo.default;
5580
+ exports.HasManyReference = _emberDataPrivateSystemReferencesHasMany.default;
5581
5581
  });
5582
- define('ember-data/-private/system/references/belongs-to', ['exports', 'ember-data/model', 'ember', '-private/system/references/reference', 'ember-data/-private/debug'], function (exports, _emberDataModel, _ember, _privateSystemReferencesReference, _emberDataPrivateDebug) {
5582
+ define('ember-data/-private/system/references/belongs-to', ['exports', 'ember-data/model', 'ember', 'ember-data/-private/system/references/reference', 'ember-data/-private/debug'], function (exports, _emberDataModel, _ember, _emberDataPrivateSystemReferencesReference, _emberDataPrivateDebug) {
5583
5583
 
5584
5584
  var BelongsToReference = function (store, parentInternalModel, belongsToRelationship) {
5585
5585
  this._super$constructor(store, parentInternalModel);
@@ -5590,9 +5590,9 @@ define('ember-data/-private/system/references/belongs-to', ['exports', 'ember-da
5590
5590
  // TODO inverse
5591
5591
  };
5592
5592
 
5593
- BelongsToReference.prototype = Object.create(_privateSystemReferencesReference.default.prototype);
5593
+ BelongsToReference.prototype = Object.create(_emberDataPrivateSystemReferencesReference.default.prototype);
5594
5594
  BelongsToReference.prototype.constructor = BelongsToReference;
5595
- BelongsToReference.prototype._super$constructor = _privateSystemReferencesReference.default;
5595
+ BelongsToReference.prototype._super$constructor = _emberDataPrivateSystemReferencesReference.default;
5596
5596
 
5597
5597
  BelongsToReference.prototype.remoteType = function () {
5598
5598
  if (this.belongsToRelationship.link) {
@@ -5664,7 +5664,7 @@ define('ember-data/-private/system/references/belongs-to', ['exports', 'ember-da
5664
5664
 
5665
5665
  exports.default = BelongsToReference;
5666
5666
  });
5667
- define('ember-data/-private/system/references/has-many', ['exports', 'ember', '-private/system/references/reference', 'ember-data/-private/debug'], function (exports, _ember, _privateSystemReferencesReference, _emberDataPrivateDebug) {
5667
+ define('ember-data/-private/system/references/has-many', ['exports', 'ember', 'ember-data/-private/system/references/reference', 'ember-data/-private/debug'], function (exports, _ember, _emberDataPrivateSystemReferencesReference, _emberDataPrivateDebug) {
5668
5668
 
5669
5669
  var get = _ember.default.get;
5670
5670
 
@@ -5677,9 +5677,9 @@ define('ember-data/-private/system/references/has-many', ['exports', 'ember', '-
5677
5677
  // TODO inverse
5678
5678
  };
5679
5679
 
5680
- HasManyReference.prototype = Object.create(_privateSystemReferencesReference.default.prototype);
5680
+ HasManyReference.prototype = Object.create(_emberDataPrivateSystemReferencesReference.default.prototype);
5681
5681
  HasManyReference.prototype.constructor = HasManyReference;
5682
- HasManyReference.prototype._super$constructor = _privateSystemReferencesReference.default;
5682
+ HasManyReference.prototype._super$constructor = _emberDataPrivateSystemReferencesReference.default;
5683
5683
 
5684
5684
  HasManyReference.prototype.remoteType = function () {
5685
5685
  if (this.hasManyRelationship.link) {
@@ -5769,7 +5769,7 @@ define('ember-data/-private/system/references/has-many', ['exports', 'ember', '-
5769
5769
 
5770
5770
  exports.default = HasManyReference;
5771
5771
  });
5772
- define('ember-data/-private/system/references/record', ['exports', 'ember', '-private/system/references/reference'], function (exports, _ember, _privateSystemReferencesReference) {
5772
+ define('ember-data/-private/system/references/record', ['exports', 'ember', 'ember-data/-private/system/references/reference'], function (exports, _ember, _emberDataPrivateSystemReferencesReference) {
5773
5773
 
5774
5774
  var RecordReference = function (store, internalModel) {
5775
5775
  this._super$constructor(store, internalModel);
@@ -5777,9 +5777,9 @@ define('ember-data/-private/system/references/record', ['exports', 'ember', '-pr
5777
5777
  this._id = internalModel.id;
5778
5778
  };
5779
5779
 
5780
- RecordReference.prototype = Object.create(_privateSystemReferencesReference.default.prototype);
5780
+ RecordReference.prototype = Object.create(_emberDataPrivateSystemReferencesReference.default.prototype);
5781
5781
  RecordReference.prototype.constructor = RecordReference;
5782
- RecordReference.prototype._super$constructor = _privateSystemReferencesReference.default;
5782
+ RecordReference.prototype._super$constructor = _emberDataPrivateSystemReferencesReference.default;
5783
5783
 
5784
5784
  RecordReference.prototype.id = function () {
5785
5785
  return this._id;
@@ -7898,6 +7898,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
7898
7898
  var set = _ember.default.set;
7899
7899
  var once = _ember.default.run.once;
7900
7900
  var isNone = _ember.default.isNone;
7901
+ var isPresent = _ember.default.isPresent;
7901
7902
  var Promise = _ember.default.RSVP.Promise;
7902
7903
  var copy = _ember.default.copy;
7903
7904
  var Store;
@@ -8091,6 +8092,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8091
8092
  @return {DS.Model} record
8092
8093
  */
8093
8094
  createRecord: function (modelName, inputProperties) {
8095
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's createRecord method", isPresent(modelName));
8094
8096
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8095
8097
  var typeClass = this.modelFor(modelName);
8096
8098
  var properties = copy(inputProperties) || new _emberDataPrivateSystemEmptyObject.default();
@@ -8250,6 +8252,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8250
8252
  @return {Promise} promise
8251
8253
  */
8252
8254
  findRecord: function (modelName, id, options) {
8255
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's findRecord method", isPresent(modelName));
8253
8256
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8254
8257
  (0, _emberDataPrivateDebug.assert)(badIdFormatAssertion, typeof id === 'string' && id.length > 0 || typeof id === 'number' && !isNaN(id));
8255
8258
 
@@ -8323,6 +8326,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8323
8326
  @return {Promise} promise
8324
8327
  */
8325
8328
  findByIds: function (modelName, ids) {
8329
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's findByIds method", isPresent(modelName));
8326
8330
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8327
8331
  var promises = new Array(ids.length);
8328
8332
 
@@ -8508,6 +8512,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8508
8512
  @return {DS.Model|null} record
8509
8513
  */
8510
8514
  peekRecord: function (modelName, id) {
8515
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's peekRecord method", isPresent(modelName));
8511
8516
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8512
8517
  if (this.hasRecordForId(modelName, id)) {
8513
8518
  return this._internalModelForId(modelName, id).getRecord();
@@ -8546,6 +8551,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8546
8551
  @return {Boolean}
8547
8552
  */
8548
8553
  hasRecordForId: function (modelName, inputId) {
8554
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's hasRecordForId method", isPresent(modelName));
8549
8555
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8550
8556
  var typeClass = this.modelFor(modelName);
8551
8557
  var id = (0, _emberDataPrivateSystemCoerceId.default)(inputId);
@@ -8563,6 +8569,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8563
8569
  @return {DS.Model} record
8564
8570
  */
8565
8571
  recordForId: function (modelName, id) {
8572
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's recordForId method", isPresent(modelName));
8566
8573
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8567
8574
  return this._internalModelForId(modelName, id).getRecord();
8568
8575
  },
@@ -8677,7 +8684,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8677
8684
  },
8678
8685
 
8679
8686
  _query: function (modelName, query, array) {
8680
- (0, _emberDataPrivateDebug.assert)("You need to pass a type to the store's query method", modelName);
8687
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's query method", isPresent(modelName));
8681
8688
  (0, _emberDataPrivateDebug.assert)("You need to pass a query hash to the store's query method", query);
8682
8689
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8683
8690
  var typeClass = this.modelFor(modelName);
@@ -8705,7 +8712,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8705
8712
  @return {Promise} promise
8706
8713
  */
8707
8714
  queryRecord: function (modelName, query) {
8708
- (0, _emberDataPrivateDebug.assert)("You need to pass a type to the store's queryRecord method", modelName);
8715
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's queryRecord method", isPresent(modelName));
8709
8716
  (0, _emberDataPrivateDebug.assert)("You need to pass a query hash to the store's queryRecord method", query);
8710
8717
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8711
8718
 
@@ -8738,6 +8745,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8738
8745
  @return {Promise} promise
8739
8746
  */
8740
8747
  findAll: function (modelName, options) {
8748
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's findAll method", isPresent(modelName));
8741
8749
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8742
8750
  var typeClass = this.modelFor(modelName);
8743
8751
 
@@ -8802,6 +8810,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8802
8810
  @return {DS.RecordArray}
8803
8811
  */
8804
8812
  peekAll: function (modelName) {
8813
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's peekAll method", isPresent(modelName));
8805
8814
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8806
8815
  var typeClass = this.modelFor(modelName);
8807
8816
 
@@ -8894,6 +8903,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8894
8903
  @deprecated
8895
8904
  */
8896
8905
  filter: function (modelName, query, filter) {
8906
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's filter method", isPresent(modelName));
8897
8907
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8898
8908
 
8899
8909
  if (!_ember.default.ENV.ENABLE_DS_FILTER) {
@@ -8944,6 +8954,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
8944
8954
  @return {boolean}
8945
8955
  */
8946
8956
  recordIsLoaded: function (modelName, id) {
8957
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's recordIsLoaded method", isPresent(modelName));
8947
8958
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
8948
8959
  return this.hasRecordForId(modelName, id);
8949
8960
  },
@@ -9192,6 +9203,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9192
9203
  @return {DS.Model}
9193
9204
  */
9194
9205
  modelFor: function (modelName) {
9206
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's modelFor method", isPresent(modelName));
9195
9207
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
9196
9208
 
9197
9209
  var factory = this.modelFactoryFor(modelName);
@@ -9208,6 +9220,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9208
9220
  },
9209
9221
 
9210
9222
  modelFactoryFor: function (modelName) {
9223
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's modelFactoryFor method", isPresent(modelName));
9211
9224
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
9212
9225
  var normalizedKey = (0, _emberDataPrivateSystemNormalizeModelName.default)(modelName);
9213
9226
 
@@ -9499,6 +9512,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9499
9512
  @return {Object} The normalized payload
9500
9513
  */
9501
9514
  normalize: function (modelName, payload) {
9515
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's normalize method", isPresent(modelName));
9502
9516
  (0, _emberDataPrivateDebug.assert)('Passing classes to store methods has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
9503
9517
  var serializer = this.serializerFor(modelName);
9504
9518
  var model = this.modelFor(modelName);
@@ -9587,7 +9601,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9587
9601
  @return DS.Adapter
9588
9602
  */
9589
9603
  adapterFor: function (modelName) {
9590
-
9604
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's adapterFor method", isPresent(modelName));
9591
9605
  (0, _emberDataPrivateDebug.assert)('Passing classes to store.adapterFor has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
9592
9606
 
9593
9607
  return this.lookupAdapter(modelName);
@@ -9619,7 +9633,7 @@ define('ember-data/-private/system/store', ['exports', 'ember', 'ember-data/mode
9619
9633
  @return {DS.Serializer}
9620
9634
  */
9621
9635
  serializerFor: function (modelName) {
9622
-
9636
+ (0, _emberDataPrivateDebug.assert)("You need to pass a model name to the store's serializerFor method", isPresent(modelName));
9623
9637
  (0, _emberDataPrivateDebug.assert)('Passing classes to store.serializerFor has been removed. Please pass a dasherized string instead of ' + _ember.default.inspect(modelName), typeof modelName === 'string');
9624
9638
 
9625
9639
  var fallbacks = ['application', this.adapterFor(modelName).get('defaultSerializer'), '-default'];
@@ -9875,6 +9889,8 @@ define('ember-data/-private/system/store/common', ['exports', 'ember'], function
9875
9889
  define('ember-data/-private/system/store/container-instance-cache', ['exports', 'ember', 'ember-data/-private/system/empty-object'], function (exports, _ember, _emberDataPrivateSystemEmptyObject) {
9876
9890
  exports.default = ContainerInstanceCache;
9877
9891
 
9892
+ var assign = _ember.default.assign || _ember.default.merge;
9893
+
9878
9894
  /**
9879
9895
  * The `ContainerInstanceCache` serves as a lazy cache for looking up
9880
9896
  * instances of serializers and adapters. It has some additional logic for
@@ -9901,7 +9917,7 @@ define('ember-data/-private/system/store/container-instance-cache', ['exports',
9901
9917
 
9902
9918
  ContainerInstanceCache.prototype = new _emberDataPrivateSystemEmptyObject.default();
9903
9919
 
9904
- _ember.default.merge(ContainerInstanceCache.prototype, {
9920
+ assign(ContainerInstanceCache.prototype, {
9905
9921
  get: function (type, preferredKey, fallbacks) {
9906
9922
  var cache = this._cache;
9907
9923
  var preferredLookupKey = type + ':' + preferredKey;
@@ -10150,7 +10166,6 @@ define("ember-data/-private/system/store/finders", ["exports", "ember", "ember-d
10150
10166
  var record;
10151
10167
  store._adapterRun(function () {
10152
10168
  var payload = (0, _emberDataPrivateSystemStoreSerializerResponse.normalizeResponseHelper)(serializer, store, typeClass, adapterPayload, null, 'queryRecord');
10153
- (0, _emberDataPrivateDebug.assert)('`store.queryRecord` expected the adapter to return one record but the response from the adapter was empty.', payload.data);
10154
10169
  //TODO Optimize
10155
10170
  record = store.push(payload);
10156
10171
  });
@@ -13396,7 +13411,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
13396
13411
 
13397
13412
  var get = _ember.default.get;
13398
13413
  var isNone = _ember.default.isNone;
13399
- var merge = _ember.default.merge;
13414
+ var assign = _ember.default.assign || _ember.default.merge;
13400
13415
 
13401
13416
  /**
13402
13417
  Ember Data 2.0 Serializer:
@@ -14378,7 +14393,7 @@ define('ember-data/serializers/json', ['exports', 'ember', 'ember-data/-private/
14378
14393
  @param {Object} options
14379
14394
  */
14380
14395
  serializeIntoHash: function (hash, typeClass, snapshot, options) {
14381
- merge(hash, this.serialize(snapshot, options));
14396
+ assign(hash, this.serialize(snapshot, options));
14382
14397
  },
14383
14398
 
14384
14399
  /**
@@ -14882,8 +14897,8 @@ define("ember-data/serializers/rest", ["exports", "ember", "ember-data/-private/
14882
14897
  var primaryHasTypeAttribute = (0, _emberDataPrivateUtils.modelHasAttributeOrRelationshipNamedType)(primaryModelClass);
14883
14898
  // Support polymorphic records in async relationships
14884
14899
  if (!primaryHasTypeAttribute && hash.type && store._hasModelFor(this.modelNameFromPayloadKey(hash.type))) {
14885
- serializer = store.serializerFor(hash.type);
14886
- modelClass = store.modelFor(hash.type);
14900
+ serializer = store.serializerFor(this.modelNameFromPayloadKey(hash.type));
14901
+ modelClass = store.modelFor(this.modelNameFromPayloadKey(hash.type));
14887
14902
  } else {
14888
14903
  serializer = primarySerializer;
14889
14904
  modelClass = primaryModelClass;
@@ -15522,32 +15537,32 @@ define('ember-data/transform', ['exports', 'ember'], function (exports, _ember)
15522
15537
  });
15523
15538
  });
15524
15539
  define("ember-data/version", ["exports"], function (exports) {
15525
- exports.default = "2.5.0-beta.2";
15540
+ exports.default = "2.5.0-beta.3";
15526
15541
  });
15527
- define("ember-inflector", ["exports", "ember", "lib/system", "lib/ext/string"], function (exports, _ember, _libSystem, _libExtString) {
15542
+ define("ember-inflector", ["exports", "ember", "ember-inflector/lib/system", "ember-inflector/lib/ext/string"], function (exports, _ember, _emberInflectorLibSystem, _emberInflectorLibExtString) {
15528
15543
 
15529
- _libSystem.Inflector.defaultRules = _libSystem.defaultRules;
15530
- _ember.default.Inflector = _libSystem.Inflector;
15544
+ _emberInflectorLibSystem.Inflector.defaultRules = _emberInflectorLibSystem.defaultRules;
15545
+ _ember.default.Inflector = _emberInflectorLibSystem.Inflector;
15531
15546
 
15532
- _ember.default.String.pluralize = _libSystem.pluralize;
15533
- _ember.default.String.singularize = _libSystem.singularize;
15547
+ _ember.default.String.pluralize = _emberInflectorLibSystem.pluralize;
15548
+ _ember.default.String.singularize = _emberInflectorLibSystem.singularize;
15534
15549
 
15535
- exports.default = _libSystem.Inflector;
15536
- exports.pluralize = _libSystem.pluralize;
15537
- exports.singularize = _libSystem.singularize;
15538
- exports.defaultRules = _libSystem.defaultRules;
15550
+ exports.default = _emberInflectorLibSystem.Inflector;
15551
+ exports.pluralize = _emberInflectorLibSystem.pluralize;
15552
+ exports.singularize = _emberInflectorLibSystem.singularize;
15553
+ exports.defaultRules = _emberInflectorLibSystem.defaultRules;
15539
15554
 
15540
15555
  if (typeof define !== 'undefined' && define.amd) {
15541
15556
  define('ember-inflector', ['exports'], function (__exports__) {
15542
- __exports__['default'] = _libSystem.Inflector;
15543
- return _libSystem.Inflector;
15557
+ __exports__['default'] = _emberInflectorLibSystem.Inflector;
15558
+ return _emberInflectorLibSystem.Inflector;
15544
15559
  });
15545
15560
  } else if (typeof module !== 'undefined' && module['exports']) {
15546
- module['exports'] = _libSystem.Inflector;
15561
+ module['exports'] = _emberInflectorLibSystem.Inflector;
15547
15562
  }
15548
15563
  });
15549
15564
  /* global define, module */
15550
- define('ember-inflector/lib/ext/string', ['exports', 'ember', 'lib/system/string'], function (exports, _ember, _libSystemString) {
15565
+ define('ember-inflector/lib/ext/string', ['exports', 'ember', 'ember-inflector/lib/system/string'], function (exports, _ember, _emberInflectorLibSystemString) {
15551
15566
 
15552
15567
  if (_ember.default.EXTEND_PROTOTYPES === true || _ember.default.EXTEND_PROTOTYPES.String) {
15553
15568
  /**
@@ -15556,7 +15571,7 @@ define('ember-inflector/lib/ext/string', ['exports', 'ember', 'lib/system/string
15556
15571
  @for String
15557
15572
  */
15558
15573
  String.prototype.pluralize = function () {
15559
- return (0, _libSystemString.pluralize)(this);
15574
+ return (0, _emberInflectorLibSystemString.pluralize)(this);
15560
15575
  };
15561
15576
 
15562
15577
  /**
@@ -15565,11 +15580,11 @@ define('ember-inflector/lib/ext/string', ['exports', 'ember', 'lib/system/string
15565
15580
  @for String
15566
15581
  */
15567
15582
  String.prototype.singularize = function () {
15568
- return (0, _libSystemString.singularize)(this);
15583
+ return (0, _emberInflectorLibSystemString.singularize)(this);
15569
15584
  };
15570
15585
  }
15571
15586
  });
15572
- define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', 'lib/utils/make-helper'], function (exports, _emberInflector, _libUtilsMakeHelper) {
15587
+ define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _emberInflectorLibUtilsMakeHelper) {
15573
15588
 
15574
15589
  /**
15575
15590
  *
@@ -15588,7 +15603,7 @@ define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', '
15588
15603
  * @param {Number|Property} [count] count of objects
15589
15604
  * @param {String|Property} word word to pluralize
15590
15605
  */
15591
- exports.default = (0, _libUtilsMakeHelper.default)(function (params) {
15606
+ exports.default = (0, _emberInflectorLibUtilsMakeHelper.default)(function (params) {
15592
15607
  var count = undefined,
15593
15608
  word = undefined;
15594
15609
 
@@ -15607,7 +15622,7 @@ define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', '
15607
15622
  }
15608
15623
  });
15609
15624
  });
15610
- define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector', 'lib/utils/make-helper'], function (exports, _emberInflector, _libUtilsMakeHelper) {
15625
+ define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _emberInflectorLibUtilsMakeHelper) {
15611
15626
 
15612
15627
  /**
15613
15628
  *
@@ -15623,18 +15638,18 @@ define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector',
15623
15638
  * @method singularize
15624
15639
  * @param {String|Property} word word to singularize
15625
15640
  */
15626
- exports.default = (0, _libUtilsMakeHelper.default)(function (params) {
15641
+ exports.default = (0, _emberInflectorLibUtilsMakeHelper.default)(function (params) {
15627
15642
  return (0, _emberInflector.singularize)(params[0]);
15628
15643
  });
15629
15644
  });
15630
- define("ember-inflector/lib/system", ["exports", "lib/system/inflector", "lib/system/string", "lib/system/inflections"], function (exports, _libSystemInflector, _libSystemString, _libSystemInflections) {
15645
+ define("ember-inflector/lib/system", ["exports", "ember-inflector/lib/system/inflector", "ember-inflector/lib/system/string", "ember-inflector/lib/system/inflections"], function (exports, _emberInflectorLibSystemInflector, _emberInflectorLibSystemString, _emberInflectorLibSystemInflections) {
15631
15646
 
15632
- _libSystemInflector.default.inflector = new _libSystemInflector.default(_libSystemInflections.default);
15647
+ _emberInflectorLibSystemInflector.default.inflector = new _emberInflectorLibSystemInflector.default(_emberInflectorLibSystemInflections.default);
15633
15648
 
15634
- exports.Inflector = _libSystemInflector.default;
15635
- exports.singularize = _libSystemString.singularize;
15636
- exports.pluralize = _libSystemString.pluralize;
15637
- exports.defaultRules = _libSystemInflections.default;
15649
+ exports.Inflector = _emberInflectorLibSystemInflector.default;
15650
+ exports.singularize = _emberInflectorLibSystemString.singularize;
15651
+ exports.pluralize = _emberInflectorLibSystemString.pluralize;
15652
+ exports.defaultRules = _emberInflectorLibSystemInflections.default;
15638
15653
  });
15639
15654
  define('ember-inflector/lib/system/inflections', ['exports'], function (exports) {
15640
15655
  exports.default = {
@@ -15952,14 +15967,14 @@ define('ember-inflector/lib/system/inflector', ['exports', 'ember'], function (e
15952
15967
 
15953
15968
  exports.default = Inflector;
15954
15969
  });
15955
- define('ember-inflector/lib/system/string', ['exports', 'lib/system/inflector'], function (exports, _libSystemInflector) {
15970
+ define('ember-inflector/lib/system/string', ['exports', 'ember-inflector/lib/system/inflector'], function (exports, _emberInflectorLibSystemInflector) {
15956
15971
 
15957
15972
  function pluralize(word) {
15958
- return _libSystemInflector.default.inflector.pluralize(word);
15973
+ return _emberInflectorLibSystemInflector.default.inflector.pluralize(word);
15959
15974
  }
15960
15975
 
15961
15976
  function singularize(word) {
15962
- return _libSystemInflector.default.inflector.singularize(word);
15977
+ return _emberInflectorLibSystemInflector.default.inflector.singularize(word);
15963
15978
  }
15964
15979
 
15965
15980
  exports.pluralize = pluralize;