Created
January 11, 2010 10:08
-
-
Save rwoeber/274125 to your computer and use it in GitHub Desktop.
make rails 1.2.x work with Ruby >= 1.8.7
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
# make rails 1.2.x work with Ruby >= 1.8.7 | |
unless '1.9'.respond_to?(:force_encoding) | |
String.class_eval do | |
begin | |
remove_method :chars | |
rescue NameError | |
# OK | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment