mde/model — pull request #3 by nathan-lafreniere (2012-10-06 21:39:59+00:00)
Title: Make it possible to load an adapter within a model definition

This patch allows a user to define an adapter more easily, by putting a function in the model definition, i.e.

```javascript
var model = require('model');

var User = function () {
this.adapter('riak', { host: 'riakhost' });
}
User = model.register('User', User);
```

It wraps the getAdapterInfo function to find the path to the individual adapter, requires it, initializes it, and adds it to model.adapters. Additionally, it passes configuration options through to the adapter.