-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup test-helpers * cleanup test/unit/model-test.js * consistent promise/run-loop usage * let/const * misc consistency * cleanup test/unit/modules-test.js * cleanup test/unit/promise-proxies-test.js * cleanup test/unit/states-test.js * cleanup test/unit/utils-test.js * cleanup tests/unit/transform/string * cleanup tests/unit/transform/number * cleanup tests/unit/transform/date * cleanup tests/unit/transform/boolean * cleanup tests/unit/transform/unload * cleanup tests/unit/transform/seralizer-for * cleanup tests/unit/store/seralize * cleanup tests/unit/store/unload * cleanup tests/unit/store/debug * cleanup tests/unit/adapter-errors * cleanup tests/unit/store/push * cleanup tests/unit/store/peek * cleanup tests/unit/store/model-for * cleanup tests/unit/store/lookup * cleanup tests/unit/store/has-record-for-id * cleanup tests/unit/store/asserts * cleanup tests/unit/store/create-record * cleanup tests/unit/store/adapter-interop * Consistent cleanup of updateRecord
- Loading branch information
1 parent
3bd0c5d
commit 7f590d8
Showing
29 changed files
with
1,404 additions
and
1,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import Ember from 'ember'; | ||
|
||
import DS from 'ember-data'; | ||
|
||
|
||
export default function(env, adapterDefinition) { | ||
var adapter = adapterDefinition; | ||
let adapter = adapterDefinition; | ||
if (!DS.Adapter.detect(adapterDefinition)) { | ||
adapter = DS.Adapter.extend(adapterDefinition); | ||
} | ||
var store = env.store; | ||
let store = env.store; | ||
env.registry.register('adapter:-custom', adapter); | ||
Ember.run(() => store.set('adapter', '-custom')); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.