Skip to content

Commit

Permalink
update readme to mention availability of userId in find findOne withi…
Browse files Browse the repository at this point in the history
…n publish
  • Loading branch information
matb33 committed Dec 7, 2013
1 parent b563164 commit c9ab900
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 @@ -191,8 +191,8 @@ test.after.findOne: function (userId, selector, options, doc) {
subsequent `after` hooks) from executing. Note that all `before` hooks will
still continue to run even if the first hook returns `false`.

- If you wish to make `userId` available to a `find` query in a `publish`
function, try the technique detailed in this [comment](https://github.com/matb33/meteor-collection-hooks/issues/7#issuecomment-24021616).
- ~~If you wish to make `userId` available to a `find` query in a `publish`
function, try the technique detailed in this [comment](https://github.com/matb33/meteor-collection-hooks/issues/7#issuecomment-24021616)~~ `userId` is available to `find` and `findOne` queries that were invoked within a `publish` function.

- All hook callbacks have `this._super` available to them (the underlying
method) as well as `this.context`, the equivalent of `this` to the underlying
Expand Down

0 comments on commit c9ab900

Please sign in to comment.