-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
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
Updates for ember-data 2.14+ #17
Conversation
package.json
Outdated
@@ -24,15 +24,13 @@ | |||
"test": "ember try:each" | |||
}, | |||
"dependencies": { | |||
"ember-assign-polyfill": "^2.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for Ember 2.4-lts and below
package.json
Outdated
"ember-cli-babel": "^6.0.0", | ||
"ember-concurrency": "^0.8.5", | ||
"ember-getowner-polyfill": "^1.2.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for Ember 2.4-lts and below
addon/mixins/copyable.js
Outdated
@@ -192,9 +192,9 @@ export default Ember.Mixin.create({ | |||
Supports Ember Data 2.5+ | |||
*/ | |||
if (meta.kind === 'hasMany') { | |||
copyRef.hasManyRelationship.addRecords(ref.hasManyRelationship.members); | |||
copyRef.hasManyRelationship.addInternalModels(ref.hasManyRelationship.members); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check if addInternalModels
exists and if so, using it instead of addRecords
? That way this change is backwards compatible.
… (ember-data < 2.14)
8318a50
to
407c44e
Compare
updated |
Are any other changes required? |
@onumossn nope. Thanks for making those changes! |
Released with |
replace addRecords with addInternalModels and update ember data version