pixelhandler/ember-data-extensions — pull request #12 by tstirrat (2014-04-02 23:01:37+00:00)
Title: Extact polymorphic belongsTo type from <attr>_type

We are serializing polymorphic belongsTo using `_id` and `_type` but we weren't extracting using this same pattern.

I've updated UnderscoredSerializer to use a consistent pattern:

Normalize:
```js
{
id: "1"
minion_id: "12",
minion_type: "EvilMinion"
}
```

To:
```js
{
id: "1"
minion: { type: "evilMinion", id: "12" }
}
```

This may not be the correct way forward, so lets have a discussion before merging.

I have kept the existing hasMany polymorphic pattern which expects this format:

```js
{
id: "1"
minions: [
{ id: "12", type: "evil_minion" }
]
}
```

Whether or not this is the *active model serializer default style*, I am uncertain.