stefanpenner / ember-app-kit

deprecated: see https://github.com/stefanpenner/ember-cli
MIT License
1.02k stars 230 forks source link

Extending Store In EAK #633

Closed agentVargas2012R closed 10 years ago

agentVargas2012R commented 10 years ago

Hello EAK Team,

I have been looking at the EAK documentation and unfortunately have not come across a specific case where I can extend the store.

I would like to do something like this:

MyApp.Store = DS.Store.extend();

where I can decorate the behavior with some additional code.

Is this supported by chance?

Thanks For The Help!

stefanpenner commented 10 years ago

in the file:

app/store.js

export default DS.Store.extend({

});
agentVargas2012R commented 10 years ago

Thanks!!

rwjblue commented 10 years ago

As of https://github.com/emberjs/data/pull/1808 (which will be in 1.0.0-beta.8 when it ships), you would make app/stores/application.js, but for 1.0.0-beta.7 you would use app/store.js.

agentVargas2012R commented 10 years ago

Thanks for the info, I'll make sure we take it into consideration.