Example #1
0
export default function(env, adapterDefinition) {
  let adapter = adapterDefinition;
  if (!DS.Adapter.detect(adapterDefinition)) {
    adapter = DS.Adapter.extend(adapterDefinition);
  }
  let store = env.store;
  env.owner.register('adapter:-custom', adapter);
  run(() => store.set('adapter', '-custom'));
}