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

[Fixes #4807] realize class + factory seperation #4810

Merged
merged 1 commit into from
Feb 22, 2017
Merged

[Fixes #4807] realize class + factory seperation #4810

merged 1 commit into from
Feb 22, 2017

Conversation

stefanpenner
Copy link
Member

@stefanpenner stefanpenner commented Feb 21, 2017

note: this combined with embers factoryFor makes MODEL_FACTORY_INJECTIONS irrelevant.

Fixes #4807


factory.modelName = factory.modelName || modelName;
// TODO: deprecate this
klass.modelName = klass.modelName || modelName;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you do Ember.deprecate instead of the TODO?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't currently have a path forward yet. I would prefer to deprecate once this is the case.

Copy link
Member Author

Choose a reason for hiding this comment

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

But will find a path forward for this soon!

Copy link
Member Author

@stefanpenner stefanpenner Feb 21, 2017

Choose a reason for hiding this comment

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

@chadhietala I'm doing a follow up PR (right now) that reduces ember-datas dependence on modelName. That will be a pre-cursor to deprecating it.

Copy link
Contributor

Choose a reason for hiding this comment

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

SG

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've removed many more internal usages of modelName, there are some more low hanging fruit but addressing it fully will be some effort (although I hope we can do asap).

Some notes: #4814

*note: this combined with embers factoryFor makes `MODEL_FACTORY_INJECTIONS` irrelevant.*
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.

5 participants