We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems like with an async property, my belongsTo relationship that returns a DS.PromiseObject fails to properly serialize.
This line fails:
json[key + "Type"] = Ember.String.camelize(belongsTo.constructor.typeKey);
because belongsTo.constructor returns DS.PromiseObject
So far, this fix looks to work:
if (belongsTo.constructor === DS.PromiseObject) { json[key + "Type"] = Ember.String.camelize(belongsTo.content.constructor.typeKey); } else { json[key + "Type"] = Ember.String.camelize(belongsTo.constructor.typeKey); }
Just seeing if it's actually a bug or I might be missing something fundamental. Thanks!
The text was updated successfully, but these errors were encountered:
Dupes this issue I think: #2385
Sorry, something went wrong.
Oh! Thanks, and the solution looks much better executed. Thank you!
No branches or pull requests
Seems like with an async property, my belongsTo relationship that returns a DS.PromiseObject fails to properly serialize.
This line fails:
because belongsTo.constructor returns DS.PromiseObject
So far, this fix looks to work:
Just seeing if it's actually a bug or I might be missing something fundamental. Thanks!
The text was updated successfully, but these errors were encountered: