Skip to content

Commit

Permalink
[fix] Fix mistakes in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Jan 5, 2012
1 parent 2dbc479 commit 0a7addc
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions README.md
Expand Up @@ -237,19 +237,21 @@ Engines are used for exposing different storage backends to resourceful. Resourc

Engines can be specified when defining a resource with `this.use`:

var Creature = resource.define('creature', function () {
this.use('couchdb', {
uri: 'http://example.jesusabdullah.net'
});

// alternately:
// this.use('memory');

// or, supposing `Engine` is defined as a resourceful engine:
// this.use(Engine, {
'uri': 'file:///tmp/datastore'
});
});
```js
var Creature = resource.define('creature', function () {
this.use('couchdb', {
uri: 'http://example.jesusabdullah.net'
});

// alternately:
// this.use('memory');

// or, supposing `Engine` is defined as a resourceful engine:
// this.use(Engine, {
'uri': 'file:///tmp/datastore'
});
});
```

#### History

Expand Down Expand Up @@ -420,7 +422,8 @@ Because the engines api was written with couchdb in mind, 'doc' should include a
This method is *optional* and is used to more or less replace the "create" and "post" methods along with "put" and "save".

**Example:**
```

```js
// Example with the memory transport
var memory = new Memory();

Expand Down

0 comments on commit 0a7addc

Please sign in to comment.