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

Make store.findAll(type) public #3234

Merged
merged 2 commits into from
Jun 8, 2015
Merged

Conversation

HeroicEric
Copy link
Member

closes #3227

  • Make store.findAll public
  • Make adapter.findAll public
  • Deprecate store.find(type) in favor of store.findAll(type)
  • Deprecate store.fetchAll(type) in favor of store.findAll(type)

@HeroicEric HeroicEric changed the title [WIP] Make store.findAll(type) public Make store.findAll(type) public Jun 6, 2015
@@ -584,9 +585,8 @@ Store = Service.extend({
*/
fetchAll: function(modelName) {
Ember.assert('Passing classes to store methods has been removed. Please pass a dasherized string instead of '+ Ember.inspect(modelName), typeof modelName === 'string');
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this assert could be removed, (it's in findAll as well)

@bmac
Copy link
Member

bmac commented Jun 8, 2015

👍

bmac added a commit that referenced this pull request Jun 8, 2015
@bmac bmac merged commit 8d7bcc0 into emberjs:master Jun 8, 2015
@HeroicEric HeroicEric deleted the make-find-all-public branch June 8, 2015 19:20
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.

store.findAll(type) should be made public
3 participants