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