mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
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:
parent
87c1e51538
commit
0cd88bce7d
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
import EmbeddedRelationAdapter from 'ghost/adapters/embedded-relation-adapter';
|
||||
|
||||
export default EmbeddedRelationAdapter.extend();
|
||||
export default EmbeddedRelationAdapter.extend({
|
||||
|
||||
shouldBackgroundReloadRecord: function () {
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue