Skip to content
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

Merged
merged 1 commit into from
Jan 30, 2018

Conversation

onumossn
Copy link
Contributor

replace addRecords with addInternalModels and update ember data version

package.json Outdated
@@ -24,15 +24,13 @@
"test": "ember try:each"
},
"dependencies": {
"ember-assign-polyfill": "^2.0.1",
Copy link
Owner

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"
Copy link
Owner

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

@@ -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);
Copy link
Owner

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.

@onumossn
Copy link
Contributor Author

updated

@onumossn
Copy link
Contributor Author

Are any other changes required?

@offirgolan
Copy link
Owner

@onumossn nope. Thanks for making those changes!

@offirgolan offirgolan merged commit dd11219 into offirgolan:master Jan 30, 2018
@offirgolan
Copy link
Owner

Released with v0.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants