Skip to content

Commit

Permalink
fix store:main deprecation issue introduced in ember data 1.0.0-beta.19
Browse files Browse the repository at this point in the history
emberjs/data#3136 to use store:application now
  • Loading branch information
jcope2013 committed Jun 10, 2015
1 parent 1f6e4d9 commit 06929a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addon/factory-guy-test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var FactoryGuyTestHelper = Ember.Object.create({
return this.getStore().find(type, id);
},
getStore: function () {
return this.get('container').lookup('store:main');
return this.get('container').lookup('store:application');
},
/**
Using mockjax to stub an http request.
Expand Down
2 changes: 1 addition & 1 deletion addon/factory-guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var FactoryGuy = {
*/
setup: function (app) {
Ember.assert("FactoryGuy#setup needs a valid application instance.You passed in [" + app + "]", app instanceof Ember.Application);
this.setStore(app.__container__.lookup('store:main'));
this.setStore(app.__container__.lookup('store:application'));
},
/**
Setting the store so FactoryGuy can do some model introspection.
Expand Down
2 changes: 1 addition & 1 deletion app/initializers/ember-data-factory-guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
after: 'store',

initialize: function(container, application) {
FactoryGuy.setStore(container.lookup('store:main'));
FactoryGuy.setStore(container.lookup('store:application'));
FactoryGuyTestHelper.set('container', container);
FactoryGuy.resetDefinitions();

Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/ember_data_factory_guy.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ var FactoryGuyTestMixin = Em.Mixin.create({
return FactoryGuy.make.apply(FactoryGuy, arguments);
},
getStore: function () {
return this.get('container').lookup('store:main');
return this.get('container').lookup('store:application');
},
/**
Using mockjax to stub an http request.
Expand Down

0 comments on commit 06929a2

Please sign in to comment.