Skip to content

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

Merged
bmac merged 1 commit into
masterfrom
fix-stuff
Feb 22, 2017
Merged

[Fixes #4807] realize class + factory seperation#4810
bmac merged 1 commit into
masterfrom
fix-stuff

Conversation

@stefanpenner

@stefanpenner stefanpenner commented Feb 21, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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!

@stefanpenner stefanpenner Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SG

Copy link
Copy Markdown
Contributor 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