/* RESTClient
 * Core interface that houses the REST adapter and revision of the API to target.
 * Setting a Client is optional and will automatically use a base client.
 *
 * You can define a custom client on your app like you would DS.Store in ember-data
 * Assign a revision number to be notified of breaking changes to the API
 */
(function() {

'use strict';

RESTless.RESTClient = Em.Object.extend({
  revision: RESTless.CURRENT_API_REVISION,
  adapter: RESTless.RESTAdapter.create()
});

// Set a default client
RESTless.set('client', RESTless.RESTClient.create());

// Detects 'RESTClient' on the Application implementaion namespace
// then sets that as the default client if found
// i.e. App.RESTClient = RESTless.RESTClient.create({ ... });
Ember.onLoad('Ember.Application', function(Application) {
  Application.initializer({
    name: 'RESTClient',
    initialize: function(container, application) {
      if(application.RESTClient) {
        RESTless.set('client', application.RESTClient);
      }
    }
  });
});

})();

@@ -457,35 +457,431 @@
 er: 
-RESTless.RESTAdapter.create
+function(key, value) %7B%0A    if (arguments.length === 1) %7B%0A      return RESTless.RESTAdapter.create();%0A    %7D else %7B%0A      //Allow the adapter to be set by Class or string%0A      if(typeof value === 'string') %7B%0A        var adapterClass = Em.get(window, value);%0A        Ember.assert('The adapter of type: %22' + value + '%22 was not found.', adapterClass);%0A        return adapterClass;%0A      %7D%0A      return value;%0A    %7D%0A  %7D.property
 ()%0A%7D

Allow adapter to be set by Class name string