diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-24 13:41:51 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-24 13:41:51 -0500 |
commit | a87462afcb6c642e59bfcd2e11e3351e2b718c38 (patch) | |
tree | d5826ee11982767558f23456487b67be5f035911 /actionpack/lib/action_controller/routing | |
parent | 3fd9036fc554979e951422a79f0f77f061112bdc (diff) | |
download | rails-a87462afcb6c642e59bfcd2e11e3351e2b718c38.tar.gz rails-a87462afcb6c642e59bfcd2e11e3351e2b718c38.tar.bz2 rails-a87462afcb6c642e59bfcd2e11e3351e2b718c38.zip |
AbstractRequest.relative_url_root is no longer automatically configured by a HTTP header. It can now be set in your configuration environment with config.action_controller.relative_url_root
Diffstat (limited to 'actionpack/lib/action_controller/routing')
-rw-r--r-- | actionpack/lib/action_controller/routing/optimisations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing/optimisations.rb b/actionpack/lib/action_controller/routing/optimisations.rb index cd4a423e6b..4b70ea13f2 100644 --- a/actionpack/lib/action_controller/routing/optimisations.rb +++ b/actionpack/lib/action_controller/routing/optimisations.rb @@ -76,7 +76,7 @@ module ActionController elements << '#{request.host_with_port}' end - elements << '#{request.relative_url_root if request.relative_url_root}' + elements << '#{ActionController::Base.relative_url_root if ActionController::Base.relative_url_root}' # The last entry in <tt>route.segments</tt> appears to *always* be a # 'divider segment' for '/' but we have assertions to ensure that |