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 release] Refactor Model.reopen to use mixins #4091

Merged
merged 1 commit into from
Jan 18, 2016

Conversation

bmac
Copy link
Member

@bmac bmac commented Jan 18, 2016

This fixes bugs where users import Model form 'ember-data/model' and it was missing required methods

@@ -3,6 +3,11 @@ import { assert, deprecate } from "ember-data/-private/debug";
import { PromiseObject } from "ember-data/-private/system/promise-proxies";
import Errors from "ember-data/-private/system/model/errors";
import isEnabled from 'ember-data/-private/features';
import DebuggerInfoMixin from 'ember-data/-private/system/debug/debug-info';
Copy link
Member

Choose a reason for hiding this comment

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

I guess with that, this line in addon/-private/system/debug.js can be removed then: the Model is imported in addon/-private/system/debug/debug-adapter.js...

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed the linked line from system/debug.js.

This fixes bugs where users import Model form 'ember-data/model' and it was missing required methods
@pangratz
Copy link
Member

LGTM 👍

@rwjblue
Copy link
Member

rwjblue commented Jan 18, 2016

LGTM

bmac added a commit that referenced this pull request Jan 18, 2016
[BUGFIX release] Refactor Model.reopen to use mixins
@bmac bmac merged commit e5636f3 into emberjs:master Jan 18, 2016
@bmac bmac deleted the model-mixins branch January 18, 2016 22:13
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.

3 participants