{"action":"created","issue":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/137","labels_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/137/comments","events_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/137/events","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/137","id":81170213,"number":137,"title":"Cannot upgrade from 0.0.27 to 0.0.28 (nor 0.0.29)","user":{"login":"Serabe","id":36221,"avatar_url":"https://avatars.githubusercontent.com/u/36221?v=3","gravatar_id":"","url":"https://api.github.com/users/Serabe","html_url":"https://github.com/Serabe","followers_url":"https://api.github.com/users/Serabe/followers","following_url":"https://api.github.com/users/Serabe/following{/other_user}","gists_url":"https://api.github.com/users/Serabe/gists{/gist_id}","starred_url":"https://api.github.com/users/Serabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serabe/subscriptions","organizations_url":"https://api.github.com/users/Serabe/orgs","repos_url":"https://api.github.com/users/Serabe/repos","events_url":"https://api.github.com/users/Serabe/events{/privacy}","received_events_url":"https://api.github.com/users/Serabe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-26T22:43:25Z","updated_at":"2015-06-03T16:57:40Z","closed_at":null,"body":"My current models are as follow:\r\n\r\n> CatalogMetadata -> belongsTo(async,polymorphic) -> Catalog\r\n> Catalog -> hasMany(async,polymorphic) -> Sections\r\n\r\nPreviously, my config looked like:\r\n\r\n```js\r\nthis.get('/api/catalogMetadata/:id', ['catalog-metadatas']);\r\nthis.get('/api/specificClassOfCatalog/:id', ['catalogs']);\r\nthis.get('/api/specificClassOfSection/:id', ['specific-class-of-sections']); // on for each specific class\r\n````\r\n\r\nAfter upgrading to 0.0.29 (though the breaking change was in 0.0.28), I had two problems:\r\n\r\n1. I need to use camelize names when the model's name has more than one word. Since both Ember Data and Ember CLI are moving/have moved to dasherized strings, is this correct?\r\n\r\n2. I'm also getting calls to the generic section endpoint for the polymorphic resources. Instead of `/api/specificClassOfSection/:id`, I'm getting calls to `/api/sections/:id`.\r\n\r\nAre these bugs or features? I saw no reference to these changes in the changelog, though.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/comments/108523368","html_url":"https://github.com/samselikoff/ember-cli-mirage/issues/137#issuecomment-108523368","issue_url":"https://api.github.com/repos/samselikoff/ember-cli-mirage/issues/137","id":108523368,"user":{"login":"g-cassie","id":4053345,"avatar_url":"https://avatars.githubusercontent.com/u/4053345?v=3","gravatar_id":"","url":"https://api.github.com/users/g-cassie","html_url":"https://github.com/g-cassie","followers_url":"https://api.github.com/users/g-cassie/followers","following_url":"https://api.github.com/users/g-cassie/following{/other_user}","gists_url":"https://api.github.com/users/g-cassie/gists{/gist_id}","starred_url":"https://api.github.com/users/g-cassie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-cassie/subscriptions","organizations_url":"https://api.github.com/users/g-cassie/orgs","repos_url":"https://api.github.com/users/g-cassie/repos","events_url":"https://api.github.com/users/g-cassie/events{/privacy}","received_events_url":"https://api.github.com/users/g-cassie/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T16:57:40Z","updated_at":"2015-06-03T16:57:40Z","body":"I think a note in the docs about how to name things would go a long way. \r\n\r\nNot being able to use the shortcuts due to having underscored urls but wanting to use dasherized filenames is a little bit of a frustration but certainly manageable.\r\n\r\nI'd be happy to work on a PR but think it makes sense to keep it minimal at this point given it will all change soon anyway."}}