13 lines
274 B
CoffeeScript
13 lines
274 B
CoffeeScript
Travis.OwnersController = Ember.ArrayController.extend
|
|
defaultTab: 'accounts'
|
|
|
|
init: ->
|
|
@activate(@defaultTab)
|
|
|
|
activate: (tab, params) ->
|
|
@set('tab', tab)
|
|
this["view#{$.camelize(tab)}"](params)
|
|
|
|
viewAccounts: ->
|
|
@set('content', Travis.Owner.find())
|