Could anyone explain to me how to do monkey patching when using Ember CLI? It's about the following method:
BelongsToRelationship.prototype.addRecord = function(newRecord) {
if (this.members.has(newRecord)){ return;}
var type = this.relationshipMeta.type;
Ember.assert("You can only add a '" + type.typeKey + "' record to this relationship", newRecord instanceof type);
if (this.inverseRecord) {
this.removeRecord(this.inverseRecord);
}
this.inverseRecord = newRecord;
this._super$addRecord(newRecord);
};
I wish to temporarily disable the assert statement but I don't see how to do this without forking the whole project. I would then also need to fork the ember-data bower package project then and create my own distribution.
-- Thomas