I forked your rails3_before_filter and made it a gem.
Hope you pull it and publish it to rubygems.
If you're not interested, i would publish it under my
gemified rails plugin
Thanks for a feedback.
I was about to refresh my rubygems profile. I will publish in in few days