{"action":"created","issue":{"url":"https://api.github.com/repos/js-data/js-data-http/issues/16","labels_url":"https://api.github.com/repos/js-data/js-data-http/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/js-data/js-data-http/issues/16/comments","events_url":"https://api.github.com/repos/js-data/js-data-http/issues/16/events","html_url":"https://github.com/js-data/js-data-http/issues/16","id":90622657,"number":16,"title":"Handling Rails HEAD 204 on update","user":{"login":"kaisersly","id":1589912,"avatar_url":"https://avatars.githubusercontent.com/u/1589912?v=3","gravatar_id":"","url":"https://api.github.com/users/kaisersly","html_url":"https://github.com/kaisersly","followers_url":"https://api.github.com/users/kaisersly/followers","following_url":"https://api.github.com/users/kaisersly/following{/other_user}","gists_url":"https://api.github.com/users/kaisersly/gists{/gist_id}","starred_url":"https://api.github.com/users/kaisersly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaisersly/subscriptions","organizations_url":"https://api.github.com/users/kaisersly/orgs","repos_url":"https://api.github.com/users/kaisersly/repos","events_url":"https://api.github.com/users/kaisersly/events{/privacy}","received_events_url":"https://api.github.com/users/kaisersly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-24T09:26:16Z","updated_at":"2015-06-24T16:03:56Z","closed_at":null,"body":"I'm using Rails as my backend. It responds to successful PATCH/PUT request with a HEAD 204 (NO CONTENT).\r\n\r\nWhen js-data gets the response, the data.data properties is \"\" and it triggers an error when js-data tries to inject it.\r\n\r\nWhat is the proper way to handle this case (apart from tweaking Rails behaviour) ?"},"comment":{"url":"https://api.github.com/repos/js-data/js-data-http/issues/comments/114925975","html_url":"https://github.com/js-data/js-data-http/issues/16#issuecomment-114925975","issue_url":"https://api.github.com/repos/js-data/js-data-http/issues/16","id":114925975,"user":{"login":"jmdobry","id":1213510,"avatar_url":"https://avatars.githubusercontent.com/u/1213510?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdobry","html_url":"https://github.com/jmdobry","followers_url":"https://api.github.com/users/jmdobry/followers","following_url":"https://api.github.com/users/jmdobry/following{/other_user}","gists_url":"https://api.github.com/users/jmdobry/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdobry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdobry/subscriptions","organizations_url":"https://api.github.com/users/jmdobry/orgs","repos_url":"https://api.github.com/users/jmdobry/repos","events_url":"https://api.github.com/users/jmdobry/events{/privacy}","received_events_url":"https://api.github.com/users/jmdobry/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T16:03:56Z","updated_at":"2015-06-24T16:03:56Z","body":"To configure it for a specific method, you'll either need to create your own static method on the resource that wraps `DS#save` or `DS#update` and changes the method to PATCH in the options, or wait for 2.x where you can do a little AOP to configure the methods individually."}}