Permalink
Browse files

updated readme to reflect recent changes

  • Loading branch information...
1 parent 5cdc53c commit 332e18bf625e9a3cce4e643fcb460e0cf9be86f3 @tblobaum committed Dec 6, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -16,8 +16,8 @@ of the schemas for your models. The call to directory will require all of the
module.exports = function (models, options) {
options = options || { debug:false }
- require('directory')(function (module) {
- models.model(module.name, module, options)
+ require('directory')(function (module, name) {
+ models.model(name, module, options)
})
}
@@ -28,8 +28,8 @@ Require a different directory:
```javascript
-require('directory')(__dirname + '/plugins', function (plugin) {
- models.plugin(plugin, options)
+require('directory')(__dirname + '/plugins', function (module, name) {
+ models.plugin(module, options)
})
````

0 comments on commit 332e18b

Please sign in to comment.