Skip to content

Instantly share code, notes, and snippets.

@stravid
Created November 21, 2013 14:22
Show Gist options
  • Select an option

  • Save stravid/7582330 to your computer and use it in GitHub Desktop.

Select an option

Save stravid/7582330 to your computer and use it in GitHub Desktop.
Tedian.ApplicationRoute = Ember.Route.extend
setupController: ->
controller = @controllerFor("sidebar")
controller.set "tasks", @store.find("task")
controller.set "projects", @store.find("project")
controller.set "timeEntries", @store.find("timeEntry")
Tedian.TimeEntry.findActive().then (timeEntry) ->
controller.set "activeTimeEntry", timeEntry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment