Project

General

Profile

RE: 502 proxy error upgrading from 0.8.7 to 0.9 ยป abstract_request.rb

Patch for mongrel 1.1.5 - Vincenzo Sorrentino, 2010-02-01 17:02

 
# Fix for mongrel which still doesn't know about Rails 2.2's changes,
# We provide a backwards compatible wrapper around the new ActionController::base.relative_url_root,
# so it can still be called off of the actually non-existing

module ActionController
class AbstractRequest < ActionController::Request
def self.relative_url_root=(path)
ActionController::Base.relative_url_root=(path)
end
def self.relative_url_root
ActionController::Base.relative_url_root
end
end
end
    (1-1/1)