title: How to transition to a route from an Ember Data Adapter
body: <p>In my application, I've got an <code>ApplicationAdapter</code> whose <code>ajaxError</code> method is customized. Within that method, I'd like to be able to <a href="http://emberjs.com/api/classes/Ember.Route.html#method_transitionTo" rel="nofollow">transition to a given route</a>. How can I do this?</p>
  
  <pre><code>App.ApplicationAdapter = DS.RESTAdapter.extend({
      ajaxError: function(jqXHR) {
          var error = this._super(jqXHR);
          if (jqXHR) {
              switch(jqXHR.status) {
              // [...]
              case 401:
                  // How can I transitionTo('login') here?
              }
              // [...]
          }
      }
  });
  </code></pre>