Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import BufferedProxy from 'ember-buffered-proxy/proxy';
const TodosProxy = BufferedProxy.extend();
TodosProxy.reopenClass({
initialState() {
return {
content: this.get('todo')
};
}
});
export default TodosProxy;
bufferedModel: computed('model', function() {
let owner = getOwner(this).ownerInjection();
return BufferedProxy.extend(Server.validationClass).create(owner, { content: this.model });
}),
bufferedModel: computed('model', function() {
let owner = getOwner(this).ownerInjection();
return BufferedProxy.extend(SubSettings.validationClass).create(owner, { content: this.model });
}),
bufferedModel: computed('model', function() {
let owner = getOwner(this).ownerInjection();
return BufferedProxy.extend(UrlMatch.validationClass).create(owner, { content: this.model });
}),
bufferedModel: computed('model', function() {
let owner = getOwner(this).ownerInjection();
return BufferedProxy.extend(Rewrite.validationClass).create(owner, { content: this.model });
}),