travis-web/assets/scripts/app/controllers/account_index.coffee
2013-03-06 15:18:57 +01:00

11 lines
249 B
CoffeeScript

Travis.AccountIndexController = Em.Controller.extend
needs: ['profile', 'currentUser']
hooksBinding: 'controllers.profile.hooks'
userBinding: 'controllers.currentUser'
sync: ->
@get('user').sync()
toggle: (hook) ->
hook.toggle()