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

Deprecate App.Store in favor of App.ApplicationStore. #1808

Merged
merged 1 commit into from
Mar 23, 2014

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Mar 14, 2014

This makes the application level store lookup much closer to the reset of our conventions (ala App.ApplicationAdapter and App.ApplicationSerializer).

This change also allows specifying a custom store when using non-global resolver (i.e. EAK/ember-cli). Previously, we were only looking for a property Store hung off of the application instance. Now you can have a module named (in the case of stock EAK setup): app/stores/application or app/application/store.js (pods structure).

A deprecation warning was added, and the prior technique still works so this is not a breaking change (although I believe that we should remove before the prior lookup prior to 1.0).

This makes the application level store lookup much closer to the reset
of our conventions (ala `App.ApplicationAdapter` and
`App.ApplicationSerializer`).

This change also allows specifying a custom store when using non-global
resolver (i.e. EAK/ember-cli). Previously, we were only looking for a
property `Store` hung off of the application instance. Now you can have
a module named (in the case of stock EAK setup):
`app/stores/application` or `app/application/store.js` (pods structure).

A deprecation warning was added, and the prior technique still works so
this is not a breaking change (although I believe that we should remove
before the prior lookup prior to 1.0).
@knownasilya
Copy link
Contributor

👍 always welcome consistency!

@stefanpenner
Copy link
Member

this does clearup naming collisions, especially if you have a store model

@rwjblue
Copy link
Member Author

rwjblue commented Mar 20, 2014

@wycats - Thoughts?

@joefiorini
Copy link

👍 App.ApplicationStore is was what I would have assumed anyway. Glad I saw this!

@rwjblue
Copy link
Member Author

rwjblue commented Mar 23, 2014

👍 given in core team meeting on 2014-03-21.

rwjblue added a commit that referenced this pull request Mar 23, 2014
Deprecate App.Store in favor of App.ApplicationStore.
@rwjblue rwjblue merged commit bf91cf2 into emberjs:master Mar 23, 2014
@rwjblue rwjblue deleted the deprecate-store-on-app branch March 23, 2014 18:12
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.

None yet

4 participants