Prevent duplicate handling of sideloaded values when there are complex relationships
Merge pull request #669 from raycohen/dedup-sideloading

Prevent duplicate handling of sideloaded values
Added support for polymorphic associations.

App.User = DS.Model.extend({
 messages: DS.hasMany(App.Message, {polymorphic: true})
});

App.Message = DS.Model.extend({
  created_at: DS.attr('date'),
  user: DS.belongsTo(App.User)
});

App.Post = App.Message.extend({
  title: DS.attr('string')
});

App.Comment = App.Message.extend({
  body: DS.attr('string'),
  post: DS.belongsTo(App.Post)
});