watsonbox/facture

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

Summary

Maintainability
Test Coverage
Facture.InvoiceEditRoute = Ember.Route.extend
  model: -> @modelFor 'invoice'

  setupController: (controller, model) ->
    @controllerFor('navbar').set('title', "#{model.get('project.name')}: Invoice #{model.get('reference')}")
    controller.set('content', model)