ComponentExtensions = Ember.Mixin.create
  modal: (name, options={})->
    target = App.__container__.lookup('route:application')
    target.send "openModal", name, options

Ember.Component.reopen ComponentExtensions
