rubymaverick/asset_access_control — pull request #1 by kcm (2013-06-04 00:37:04+00:00)
Title: insert middleware on top of stack

Inserting before ActionDispatch::Static assumes serving static assets is enabled and will fail if it's not, since that middleware won't exist. The other common trick of inserting after Rack::Lock isn't available if running in threadsafe mode.

Errors will be similar to:

```
RuntimeError: No such middleware to insert before: "ActionDispatch::Static"
```