Keep old shouldBackgroundReloadRecord behaviour ready for 2.0 upgrade

no issue
- adds `shouldBackgroundReloadRecord` override so that we keep the current behaviour (never background reload unless instigated manually) when we upgrade to Ember Data 2.0 which will always background-reload by default
This commit is contained in:
Kevin Ansfield 2015-10-19 16:35:17 +01:00
parent 28871d3f4d
commit 47989c3b89
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
import EmbeddedRelationAdapter from 'ghost/adapters/embedded-relation-adapter';
export default EmbeddedRelationAdapter.extend();
export default EmbeddedRelationAdapter.extend({
shouldBackgroundReloadRecord: function () {
return false;
}
});

View File

@ -5,6 +5,10 @@ export default DS.RESTAdapter.extend({
host: window.location.origin,
namespace: ghostPaths().apiRoot.slice(1),
shouldBackgroundReloadRecord: function () {
return false;
},
query: function (store, type, query) {
var id;