You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.
Why is in the one example DS.Store.extend() used while in the other DS.Store.create(). I'm quite confused by all the automagic introduced by emberjs, as almost always are classes extended but never create objects. How does App.Person = DS.Model.extend(...) knows which store to use when App.Post.find() is invoked (http://emberjs.com/guides/models/finding-models/).
This might be the wrong place to ask those questions. However, I'm a little bit lost in this topics.
The text was updated successfully, but these errors were encountered:
My Gist is relatively old and if I remember correctly at the time of writing the Store for an application wasn't instantiated automatically when an Ember.Application has been created. So the App.Store = DS.Store.extend() way is the way to go.
You second question about where a model knows on which store to invoke the method is answered here.
I hope my comments helped you, otherwise it might be better to ask question either on StackOverflow or on the #emberjs IRC channel.
I had a look in the ember documentation (http://emberjs.com/guides/models/defining-a-store/) and wonder why it is so different to this example (https://gist.github.com/pangratz/4462422).
Why is in the one example DS.Store.extend() used while in the other DS.Store.create(). I'm quite confused by all the automagic introduced by emberjs, as almost always are classes extended but never create objects. How does App.Person = DS.Model.extend(...) knows which store to use when App.Post.find() is invoked (http://emberjs.com/guides/models/finding-models/).
This might be the wrong place to ask those questions. However, I'm a little bit lost in this topics.
The text was updated successfully, but these errors were encountered: