Skip to content

Instantly share code, notes, and snippets.

@jordpo
Created October 19, 2016 16:13
Show Gist options
  • Save jordpo/7effcd3776430fdab79351dc32895ed5 to your computer and use it in GitHub Desktop.
Save jordpo/7effcd3776430fdab79351dc32895ed5 to your computer and use it in GitHub Desktop.
New imports for ember data
// DS.Model
import Model from 'ember-data/model';
// DS.RESTSerializer
import RESTSerializer from 'ember-data/serializers/rest';
// DS.JSONSerializer
import JSONSerializer from 'ember-data/serializers/json';
// DS.JSONAPISerializer
import JSONAPISerializer from 'ember-data/serializers/json-api';
// DS.JSONAPIAdapter
import JSONAPIAdapter from 'ember-data/adapters/json-api';
// DS.RESTAdapter
import RESTAdapter from 'ember-data/adapters/rest';
// DS.Adapter
import Adapter from 'ember-data/adapter';
// DS.Store
import Store from 'ember-data/store';
// DS.Transform
import Transform from 'ember-data/transform';
// DS.attr
import attr from 'ember-data/attr';
// DS.hasMany or DS.belongsTo
import { hasMany, belongsTo } from 'ember-data/relationships';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment