Skip to content

Commit

Permalink
Merge pull request #62 from samuraisam/sam/hasmany-fix
Browse files Browse the repository at this point in the history
Honor explicit inverse names with hasMany fields
  • Loading branch information
kurko committed May 11, 2014
2 parents 7263104 + 393f9c6 commit fe6a3e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion localstorage_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
extractSingle: function(store, type, payload) {
if (payload && payload._embedded) {
for (var relation in payload._embedded) {
var typeName = Ember.String.singularize(relation),
var relType = type.typeForRelationship(relation);
var typeName = relType.typeKey,
embeddedPayload = payload._embedded[relation];

if (embeddedPayload) {
Expand Down

0 comments on commit fe6a3e4

Please sign in to comment.