import Ember from 'ember'
export default Ember.Route.extend
  actions:
    editUser: (user)->
      @modal 'user/edit-user',
        model: user
    newUser: ->
      new_user = @store.createRecord('user')
      @modal 'user/new-user',
        model: new_user
        save: => @transitionTo 'user.show', new_user
