kurko / ember-json-api

JSON API adapter for Ember Data.
MIT License
254 stars 62 forks source link

Fix polymorphic belongsTo serialization #57

Closed DougPuchalski closed 9 years ago

DougPuchalski commented 9 years ago

Type key must come from the model object, not from the relationship name.

kurko commented 9 years ago

@aceofspades hey, this PR broke the build. Perhaps because other commits were merged before. Here's the error.

screen shot 2015-02-18 at 12 39 29 pm

I reverted the merge (687f4fb34a64627ac563e7a7b7f8f6224aba14b0). Do you mind opening a new PR and checking that the tests are passing?

Thanks for the contribution.

DougPuchalski commented 9 years ago

Will take a look asap.

DougPuchalski commented 9 years ago

Fixed via #65