Browse files

Update readme

  • Loading branch information...
1 parent 720ca52 commit e0e0be7e7d9fd41d93d0a046cb1bd0e5e1afa32a Anatoliy Chakkaev committed May 18, 2011
Showing with 5 additions and 2 deletions.
  1. +3 −1 README.md
  2. +2 −1 package.json
View
4 README.md
@@ -39,7 +39,7 @@ as event emitter, so you can:
// save user id in req.session
});
-It is fine put code like this into user model (`app/models/user.js`):
+Just put code like this into the environment settings (`config/environment.js`):
app.on('twitterConnect', function (twitter, req) {
User.findOne({twitterId: twitter.id}, function (err, user) {
@@ -50,3 +50,5 @@ It is fine put code like this into user model (`app/models/user.js`):
}
});
});
+
+Ideally, in application should be specific place for stuff like this (maybe app/observers).
View
3 package.json
@@ -8,7 +8,8 @@
"url": "git://github.com/1602/railway-twitter.git"
},
"dependencies": {
- "oauth": ">=0.9.0"
+ "oauth": ">=0.9.0",
+ "yaml": ">=0.1.2"
},
"author": "Anatoliy Chakkaev <rpm1602@gmail.com> (http://node-js.ru)",
"directories": {

0 comments on commit e0e0be7

Please sign in to comment.