diff --git a/packages/ember-data/lib/system/record-array-manager.js b/packages/ember-data/lib/system/record-array-manager.js index 43cd8bec4ca..609e90c7275 100644 --- a/packages/ember-data/lib/system/record-array-manager.js +++ b/packages/ember-data/lib/system/record-array-manager.js @@ -124,7 +124,7 @@ export default Ember.Object.extend({ if (shouldBeInArray) { if (!recordArrays.has(array)) { - array._pushRecord(record); + array.addRecord(record); recordArrays.add(array); } } else if (!shouldBeInArray) { diff --git a/packages/ember-data/lib/system/record-arrays/record-array.js b/packages/ember-data/lib/system/record-arrays/record-array.js index 6a67743f05a..24ee764eac0 100644 --- a/packages/ember-data/lib/system/record-arrays/record-array.js +++ b/packages/ember-data/lib/system/record-arrays/record-array.js @@ -135,22 +135,6 @@ export default Ember.ArrayProxy.extend(Ember.Evented, { } }, - _pushRecord: function(record) { - get(this, 'content').pushObject(record); - }, - - /** - Adds a record to the `RecordArray`, but allows duplicates - - @deprecated - @method pushRecord - @private - @param {DS.Model} record - */ - pushRecord: function(record) { - Ember.deprecate('Usage of `recordArray.pushRecord` is deprecated, use `recordArray.addObject` instead'); - this._pushRecord(record); - }, /** Removes a record to the `RecordArray`.