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

[BUGFIX beta] Removes get record from InternalModel. #4901

Merged
merged 3 commits into from
Mar 28, 2017

Conversation

esbanarango
Copy link
Contributor

This PR removes get record from InternalModel 'cause there is already a getRecord method.

Fixes #4756

@@ -112,7 +112,7 @@ RecordReference.prototype.push = function(objectOrPromise) {
@return {DS.Model} the record for this RecordReference
*/
RecordReference.prototype.value = function() {
return this.internalModel.record;
return this.internalModel._record;
Copy link
Member

Choose a reason for hiding this comment

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

@esbanarango do you mind changing this line to use getRecord()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bmac changed. 👍

@bmac bmac merged commit 551e39a into emberjs:master Mar 28, 2017
@bmac
Copy link
Member

bmac commented Mar 28, 2017

Thanks @esbanarango.

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