Skip to content

Instantly share code, notes, and snippets.

@rwoeber
Created January 11, 2010 10:08
Show Gist options
  • Save rwoeber/274125 to your computer and use it in GitHub Desktop.
Save rwoeber/274125 to your computer and use it in GitHub Desktop.
make rails 1.2.x work with Ruby >= 1.8.7
# 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