Project

General

Profile

1.0.1->1.0.2 still have a problem on bitnamistack ยป abstract_request.rb

yu xiaohang, 2010-09-29 10:26

 
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)