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

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

    
5
module ActionController
6
  class AbstractRequest < ActionController::Request
7
    def self.relative_url_root=(path)
8
      ActionController::Base.relative_url_root=(path)
9
    end
10
    def self.relative_url_root
11
      ActionController::Base.relative_url_root
12
    end
13
  end
14
end
    (1-1/1)