codeguy/Slim-Extras — pull request #35 by ziadoz (2012-09-11 18:30:24+00:00)
Title: Reverted CsrfGuard behaviour

I reverted the behaviour back to just halting the application as the graceful behaviour doesn't quite work as originally intended. The middleware needs to access to the current route so after the session is destroyed it can force a redirect back there, like Rails does.

I thought I saw an issue for Slim that suggested giving the current route to middleware, but searching doesn't return any results, so I can't reference it here.