Created
March 22, 2016 18:27
-
-
Save Mariusio/bc5419feeb03f56efa6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; | |
export default Ember.Route.extend(AuthenticatedRouteMixin, { | |
session: Ember.inject.service('session'), | |
model() { | |
return this.store.findAll('dashboard'); | |
}, | |
setupController(controller, model) { | |
controller.set('userDashboards', Ember.computed('model', function() { | |
return model; | |
})); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment