Fixing “undefined local variable or method `version_requirements’ for #

If you are stacking with this error and you run Rails 2.3, you should easily insert the following code between the “bootstrap” and “initialize” sections of your enviroment.rbThis hack fixes the problem.

if Gem::VERSION >= "1.3.6"
  module Rails
    class GemDependency
      def requirement
        r = super
        (r == Gem::Requirement.default) ? nil : r
      end
    end
  end
end