tim-vandecasteele/grape-swagger — pull request #167 by bradrobertson (2014-11-07 20:35:55+00:00)
Title: don't cache the base_path

base_path for some reason was being cached as a class local variable (even if you provide a proc in the config). This means that if you have a mutli-tenanted api (for instance `app1.myapp.com/api` and `app2.myapp.com/api`) if you switch between those 2 api docs, the `baseUrl` would always be the first one that the site accessed since it's cached on load.

There's really no reason to cache this, it should just be evaluated for each request.