import ApplicationAdapter from './application'; export default ApplicationAdapter.extend({ retry(model) { let url = `${this.buildURL('email', model.get('id'))}retry/`; return this.ajax(url, 'PUT', {data: {}}).then((data) => { this.store.pushPayload(data); return model; }); } });