The solution in my case was a "fixes set":
- I had to split the Ember Application Object in order to set first the instance of
DS.Store
, and the add to it the "Models" - In the second part of this object I added all the controllers, views, router, etc
- Finally, when I extended the
DS.Store
object I had to set the attributesimulateRemoteResponse: true
The final app.js code was the following:
define(
[ #dependencies ],
function( #dependencies_objects ) {
window.App = Ember.Application.create({
VERSION: '1.0.0',
LOG_TRANSITIONS: true,
rootElement: '#app',
// Store
store: DS.Store.create({
revision: 12,
adapter : DS.FixtureAdapter.extend({
simulateRemoteResponse: false
})
}),
// Models
Item: Item // Where Item is my own model
});
App.reopen({
// Routes
IndexRoute: IndexRoute,
// Load routes
Router: Router,
// Controllers
ApplicationController: Ember.Controller.extend(),
IndexController: IndexController
});
}
);