# This patch is needed to make Rails 2.0.1 run with Ruby 1.8.7.
# http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg528878.html
unless '1.9'.respond_to?(:force_encoding)
  String.class_eval do
    begin
      remove_method :chars
    rescue NameError
      # OK
    end
  end
end

Add preliminary support for Ruby 1.8.7
Add preliminary support for Ruby 1.8.7

This fixes an incompatibility between Ruby 1.8.7 and Rails 2.0.2.  The
error was reported last night by jawong on #mephisto:

  undefined method `[]' for #<Enumerable::Enumerator:0xb6e4c968>

This fix is taken from the following Debian bug report:

  http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg528878.html

There are still two unit test failures with 1.8.7.  I hope to fix them
shortly.
