Skip to content

Instantly share code, notes, and snippets.

@gintsgints
Created January 9, 2014 18:21
Show Gist options
  • Save gintsgints/8339224 to your computer and use it in GitHub Desktop.
Save gintsgints/8339224 to your computer and use it in GitHub Desktop.
My way for storing multiple models for route
module.exports = App.CompaniesRoute = Ember.Route.extend({
model: function() {
var result = {companies: this.store.find('company'), productgroups: this.store.find('product.group')};
return result;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment