addon/stores/base-store/decorate-adapter.js
function addIdToSnapshot(snapshot) {
  var record = snapshot.record;
  record.get('store').updateId(record, { id: generateUniqueId() });
  return record._createSnapshot();
}
function addIdToSnapshot(snapshot) {
  var record = snapshot.record;
  record.get('store').updateId(record, { id: generateUniqueId() });
  return record._createSnapshot();
}
function addIdToSnapshot ( snapshot ) { var record = snapshot . record ; record . get ( 'store' ) . updateId ( record , { id : generateUniqueId ( ) } ) ; return record . _createSnapshot ( ) ; }
Add an id to record before create in local
Add an id to record before create in local