Skip to content

Instantly share code, notes, and snippets.

@bakura10

bakura10/ember.js

Created Feb 23, 2014
Embed
What would you like to do?
module.exports = App.ApplicationRoute = Ember.Route.extend(Ember.SimpleAuth.ApplicationRouteMixin, {
/**
* Setup the application controller
*
* @param controller
*/
setupController: function(controller) {
var projects = this.get('session.user.projects');
if (projects.get('length') > 0) {
controller.set('activeProject', projects.get('firstObject'));
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.