audiosocket/mediator — pull request #3 by cmorss (2012-06-26 16:34:45+00:00)
Title: Registry

Allow mediators to optionally register themselves like this:

```
mediate Purchase, registry: :accounting do
def render! r
super
...
end
```

And then be used like this:

```
m = Mediator[p, registry: :accounting]
```

Note: passing a context to the mediator lookup helper has been changed. You must provide an options hash for args following the mediator subject (user in the case below):

```
Mediator[user, context: context]
```