Not tested, but I think you could return a tuple with the Imaging.Document.find()
and the _promise("/url/foo/", "GET");
, using Ember.RSVP.hash
Imaging.ReferenceRoute = Ember.Route.extend(Imaging.Ajax, {
setupController: function(controller, model) {
controller.set('error_messages', []);
controller.set('category_config', model.category_config);
return this._super(controller, model.document);
},
model: function() {
return Ember.RSVP.hash({
document: Imaging.Document.find(),
category_config: this._promise("/url/foo/", "GET")
});
}
});