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

Pass _internalModel into a record when it is created #3262

Merged
merged 1 commit into from
Jun 8, 2015

Conversation

bmac
Copy link
Member

@bmac bmac commented Jun 8, 2015

Closes #3255.

@igorT
Copy link
Member

igorT commented Jun 8, 2015

Any way we could have a test please?

@bmac
Copy link
Member Author

bmac commented Jun 8, 2015

Will do

@bmac bmac force-pushed the create-internal-model branch from 6406f1f to 399f88f Compare June 8, 2015 21:17
@bmac
Copy link
Member Author

bmac commented Jun 8, 2015

I added a test. @igorT let me know if there is a better way to test this without directly asserting around internals.


init: function() {
this._super.apply(this, arguments);
ok(this._internalModel);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok(this.get('name')) is the thing we actually care about

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@bmac bmac force-pushed the create-internal-model branch from 399f88f to 7bd5993 Compare June 8, 2015 21:40
igorT added a commit that referenced this pull request Jun 8, 2015
Pass _internalModel into a record when it is created
@igorT igorT merged commit 5b4e514 into emberjs:master Jun 8, 2015
@igorT
Copy link
Member

igorT commented Jun 8, 2015

cc @fivetanley for beta.19.1

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.

2 participants