Skip to content

Instantly share code, notes, and snippets.


Shaun Cutts shaunc

View GitHub Profile
shaunc / gist:9699236
Last active Aug 29, 2015
Sketch of proposal for Ember.JSONSerializer.serializeBelongsTo, handling async and polymorphic belongsTo, hasMany
View gist:9699236
# The idea is that (even for an async relationship) we have available either
# the related object, or the as-of-yet not unserialized reference to that
# object. In the latter case, we can use directly.
# This avoids possible generation of more server requests for related
# objects while saving a given object.
# Issues:
# 1) Potentially, the not-unserialized reference could be in a different
You can’t perform that action at this time.