drapergeek/findit

View on GitHub
app/assets/javascripts/routes/items_route.js.coffee

Summary

Maintainability
Test Coverage
Findit.ItemsRoute = Ember.Route.extend
  model: -> @store.findAll('item')
  setupController: (controller, model) ->
    controller.set('allItems', model)
    controller.set('model', model)

  actions:
    navigateToItem: (item) ->
      @transitionTo 'item', item