{"action":"published","release":{"url":"https://api.github.com/repos/canjs/can-model/releases/16334922","assets_url":"https://api.github.com/repos/canjs/can-model/releases/16334922/assets","upload_url":"https://uploads.github.com/repos/canjs/can-model/releases/16334922/assets{?name,label}","html_url":"https://github.com/canjs/can-model/releases/tag/v3.1.0","id":16334922,"node_id":"MDc6UmVsZWFzZTE2MzM0OTIy","tag_name":"v3.1.0","target_commitish":"master","name":"AJAX custom function","draft":false,"author":{"login":"cherifGsoul","id":109013,"node_id":"MDQ6VXNlcjEwOTAxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/109013?v=4","gravatar_id":"","url":"https://api.github.com/users/cherifGsoul","html_url":"https://github.com/cherifGsoul","followers_url":"https://api.github.com/users/cherifGsoul/followers","following_url":"https://api.github.com/users/cherifGsoul/following{/other_user}","gists_url":"https://api.github.com/users/cherifGsoul/gists{/gist_id}","starred_url":"https://api.github.com/users/cherifGsoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherifGsoul/subscriptions","organizations_url":"https://api.github.com/users/cherifGsoul/orgs","repos_url":"https://api.github.com/users/cherifGsoul/repos","events_url":"https://api.github.com/users/cherifGsoul/events{/privacy}","received_events_url":"https://api.github.com/users/cherifGsoul/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2019-03-25T19:20:11Z","published_at":"2019-03-25T19:26:58Z","assets":[],"tarball_url":"https://api.github.com/repos/canjs/can-model/tarball/v3.1.0","zipball_url":"https://api.github.com/repos/canjs/can-model/zipball/v3.1.0","body":"This release allows to pass a custom Ajax function like the following:\r\n```js\r\nvar Todo = Model.extend({\r\n\t\tfindAll: \"GET /todos\",\r\n\t\tajax: function(settings) {\r\n\t\t\tQUnit.ok(true,\"custom ajax called\");\r\n\t\t\tQUnit.equal( settings.url , \"/todos\", \"url looks right\");\r\n\t\t\t// Return the promise otherwise it throws an error\r\n\t\t\t// \"Cannot read property 'then' of undefined\"\r\n\t\t\treturn Promise.resolve();\r\n\t\t}\r\n\t}, {});\r\n```\r\n\r\n#63 "}}
{"actor":{"display_login":"cherifGsoul"}}