Nope. The last version I wrote is buried in a rails app at a company I no longer work for.
It's a three or four line before filter in the application controller. I reimplement it every time since it's relatively simple.
I don't have it on any public code since it's also the last thing I implement before launching.