{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1080","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1080/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1080/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1080/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/1080","id":102879219,"number":1080,"title":"Using Ember Data 2.0.0-beta1 with ActiveModel::Serializer::Adapter::JsonApi","user":{"login":"mattboldt","id":1389818,"avatar_url":"https://avatars.githubusercontent.com/u/1389818?v=3","gravatar_id":"","url":"https://api.github.com/users/mattboldt","html_url":"https://github.com/mattboldt","followers_url":"https://api.github.com/users/mattboldt/followers","following_url":"https://api.github.com/users/mattboldt/following{/other_user}","gists_url":"https://api.github.com/users/mattboldt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattboldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattboldt/subscriptions","organizations_url":"https://api.github.com/users/mattboldt/orgs","repos_url":"https://api.github.com/users/mattboldt/repos","events_url":"https://api.github.com/users/mattboldt/events{/privacy}","received_events_url":"https://api.github.com/users/mattboldt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T20:01:20Z","updated_at":"2015-08-24T21:12:03Z","closed_at":null,"body":"Since the new ember no longer has `DS.ActiveModelSerializer` or `DS.ActiveModelAdapter`, I'm looking to switch to their new `DS.JSONAPISerializer`. This seems to be the best way to go, if the previous two won't be supported in the future.\r\n\r\nEmber is expecting the data from the api to be something like \r\n```\r\nstore.push({\r\n  data: {\r\n    id: '1', \r\n    type: 'user', \r\n    attributes: { \r\n      name: 'Pangratz' \r\n    }\r\n  }\r\n});\r\n```\r\n\r\nBut from my rails app, with the `:json_api` option set to true, my api is returning `user` as `users` plural.\r\n\r\n```\r\n  data: {\r\n    id: '1', \r\n    type: 'users', \r\n    attributes: { \r\n      name: 'Pangratz' \r\n    }\r\n  }\r\n```\r\n\r\nEmber expects a singular model name, and as such cannot push data."},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/134381531","html_url":"https://github.com/rails-api/active_model_serializers/issues/1080#issuecomment-134381531","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1080","id":134381531,"user":{"login":"mattboldt","id":1389818,"avatar_url":"https://avatars.githubusercontent.com/u/1389818?v=3","gravatar_id":"","url":"https://api.github.com/users/mattboldt","html_url":"https://github.com/mattboldt","followers_url":"https://api.github.com/users/mattboldt/followers","following_url":"https://api.github.com/users/mattboldt/following{/other_user}","gists_url":"https://api.github.com/users/mattboldt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattboldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattboldt/subscriptions","organizations_url":"https://api.github.com/users/mattboldt/orgs","repos_url":"https://api.github.com/users/mattboldt/repos","events_url":"https://api.github.com/users/mattboldt/events{/privacy}","received_events_url":"https://api.github.com/users/mattboldt/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T21:12:03Z","updated_at":"2015-08-24T21:12:03Z","body":"Yes, this worked! Thanks so much."}}