Created
February 15, 2012 22:15
-
-
Save joho/1839404 to your computer and use it in GitHub Desktop.
My foolproof upgrade path from ruby 1.8 to 1.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ObjectSpace.each_object do |object| | |
object.force_encoding("utf-8") if object.respond_to?(:force_encoding) | |
end |
At the very least. Maybe in an after_filter too. and called liberally in the middle of requests too.
I don't foresee any performance implications at all from this.
sweet jesus, good luck with that
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So... in a before_filter, right?