From a55d53835af80bd7c10c0bf503055656be5a2c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Lok=C3=B8y?= Date: Mon, 13 Jan 2014 18:27:13 +0100 Subject: [PATCH] Updated the example so that it works The example missed the database as the first argument to the Model creation call. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fd0743..6dea747 100644 --- a/README.md +++ b/README.md @@ -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, @@ -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. \ No newline at end of file +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.