Skip to content

Commit

Permalink
Updated the example so that it works
Browse files Browse the repository at this point in the history
The example missed the database as the first argument to the Model creation call.
  • Loading branch information
klokoy committed Jan 13, 2014
1 parent a3a7ece commit a55d538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var database = new iridium({
database: 'demo'
});

database.register('User', new iridium.Model('user', {
database.register('User', new iridium.Model(database, 'user', {
firstname: String,
lastname: String,
since: Date,
Expand Down Expand Up @@ -376,4 +376,4 @@ module.exports = {
## Thanks To
Thanks to [Tadahiro Ishisaka](https://github.com/ishisaka) for his brilliant [nodeintellisense](https://github.com/ishisaka/nodeintellisense) library, it has been used as the basis for IntelliSense support within this module.

I'd also like to thank [dresende](https://github.com/dresende) and [dxg](https://github.com/dxg) from the [node-orm2](https://github.com/dresende/node-orm2) project for getting me introduced to Node and giving me many of the ideas for how a good ORM should be structured. If you're looking for an easy to use and more fully featured ORM with support for SQL and NoSQL databases, I'd seriously suggest giving [node-orm2](https://github.com/dresende/node-orm2) a try.
I'd also like to thank [dresende](https://github.com/dresende) and [dxg](https://github.com/dxg) from the [node-orm2](https://github.com/dresende/node-orm2) project for getting me introduced to Node and giving me many of the ideas for how a good ORM should be structured. If you're looking for an easy to use and more fully featured ORM with support for SQL and NoSQL databases, I'd seriously suggest giving [node-orm2](https://github.com/dresende/node-orm2) a try.

0 comments on commit a55d538

Please sign in to comment.