wireframe/multitenant — pull request #10 by pupeno (2012-11-07 12:01:07+00:00)
Title: Restore previous tenant and tenant callback

In this pull request I'm including a feature which I sent in a previous one that I closed:

* when leaving the scope of a tenant, restore the previous tenant

as well as a new feature: when entering the scope of a tenant, call a method in the object.

Everything includes tests. The previous feature has been in production for months and the second one will be in production soon.