OSDN Git Service

fix the error at starting rails 2.3 with prefix option
authorAkihiro Ono <akihiro@ase.co.jp>
Fri, 27 Nov 2009 09:51:45 +0000 (18:51 +0900)
committerAkihiro Ono <akihiro@ase.co.jp>
Fri, 27 Nov 2009 09:51:45 +0000 (18:51 +0900)
ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel/rails.rb

index 853ae4e..912986d 100644 (file)
@@ -148,7 +148,7 @@ module Mongrel
         require 'dispatcher'
         require 'mongrel/rails'
 
-        ActionController::AbstractRequest.relative_url_root = ops[:prefix] if ops[:prefix]
+        ActionController::Base.relative_url_root = ops[:prefix] if ops[:prefix]
 
         @rails_handler = RailsHandler.new(ops[:docroot], ops[:mime])
       end