Skip to content

Instantly share code, notes, and snippets.

@endash
Created February 12, 2014 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endash/8963508 to your computer and use it in GitHub Desktop.
Save endash/8963508 to your computer and use it in GitHub Desktop.
model: function () {
var route = this;
return this.get('store').findAll('lens').then(function (lenses) {
route.transitionTo('lens', lenses.get('firstObject'));
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment