Skip to content

Commit

Permalink
updated to ember-data.1.0.0-beta.16
Browse files Browse the repository at this point in the history
  • Loading branch information
danielspaniel committed Mar 23, 2015
1 parent 7b2482c commit 24faf2a
Show file tree
Hide file tree
Showing 9 changed files with 241 additions and 243 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"license": "MIT",
"dependencies": {
"ember-data": "1.0.0-beta.15",
"ember-data": "1.0.0-beta.16",
"jquery-mockjax": "latest"
},
"ignore": [
Expand Down
8 changes: 4 additions & 4 deletions dist/amd/factory-guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ var FactoryGuy = {
definition.reset();
try {
var modelType = store.modelFor(definition.model);
if (store.usingFixtureAdapter()) {
modelType.FIXTURES = [];
}
//if (store.usingFixtureAdapter()) {
// modelType.FIXTURES = [];
//}
store.unloadAll(modelType);
} catch (e) {
console.log('resetModels',e)
Expand Down Expand Up @@ -715,7 +715,7 @@ var MockUpdateRequest = function(url, model, mapFind, options) {
@returns {Boolean} true if store's adapter is DS.FixtureAdapter
*/
usingFixtureAdapter: function () {
var adapter = this.adapterFor('application');
var adapter = this.lookupAdapter('application');
return adapter instanceof DS.FixtureAdapter;
},
/**
Expand Down
8 changes: 4 additions & 4 deletions dist/ember-data-factory-guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ var FactoryGuy = {
definition.reset();
try {
var modelType = store.modelFor(definition.model);
if (store.usingFixtureAdapter()) {
modelType.FIXTURES = [];
}
//if (store.usingFixtureAdapter()) {
// modelType.FIXTURES = [];
//}
store.unloadAll(modelType);
} catch (e) {
console.log('resetModels',e)
Expand Down Expand Up @@ -710,7 +710,7 @@ var MockUpdateRequest = function(url, model, mapFind, options) {
@returns {Boolean} true if store's adapter is DS.FixtureAdapter
*/
usingFixtureAdapter: function () {
var adapter = this.adapterFor('application');
var adapter = this.lookupAdapter('application');
return adapter instanceof DS.FixtureAdapter;
},
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/ember-data-factory-guy.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/factory_guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ var FactoryGuy = {
definition.reset();
try {
var modelType = store.modelFor(definition.model);
if (store.usingFixtureAdapter()) {
modelType.FIXTURES = [];
}
//if (store.usingFixtureAdapter()) {
// modelType.FIXTURES = [];
//}
store.unloadAll(modelType);
} catch (e) {
console.log('resetModels',e)
Expand Down
2 changes: 1 addition & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@returns {Boolean} true if store's adapter is DS.FixtureAdapter
*/
usingFixtureAdapter: function () {
var adapter = this.adapterFor('application');
var adapter = this.lookupAdapter('application');
return adapter instanceof DS.FixtureAdapter;
},
/**
Expand Down
11 changes: 5 additions & 6 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<link rel="stylesheet" type="text/css" href="../bower_components/qunit/qunit/qunit.css">
<!-- add any external libraries your code needs -->
<script src='../bower_components/jquery/jquery.js'></script>
<script src='../bower_components/handlebars/handlebars.js'></script>
<script src='../bower_components/ember/ember.js'></script>
<script src='../bower_components/ember/ember.debug.js'></script>
<script src='../bower_components/ember-data/ember-data.js'></script>
<script src="../bower_components/qunit/qunit/qunit.js"></script>
<script src="../bower_components/sinon/index.js"></script>
Expand All @@ -27,11 +26,11 @@
</head>
<body>
<div id="qunit"></div> <!-- QUnit fills this with results, etc -->
<!--<script src='active_model_adapter_factory_test.js'></script>-->
<!--<script src='rest_adapter_factory_test.js'></script>-->
<script src='active_model_adapter_factory_test.js'></script>
<script src='rest_adapter_factory_test.js'></script>
<!--<script src='fixture_adapter_factory_test.js'></script>-->
<!--<script src='store_test.js'></script>-->
<!--<script src='factory_guy_test.js'></script>-->
<script src='store_test.js'></script>
<script src='factory_guy_test.js'></script>
<script src='factory_guy_test_mixin_test.js'></script>
<div id='qunit-fixture'>

Expand Down
Loading

0 comments on commit 24faf2a

Please sign in to comment.