mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
It's based specifying application's script_name with:
Rails.application.default_url_options = {:script_name => "/foo"}
default_url_options method is delegated to routes. If router
used to generate url differs from the router passed via env
it always overwrites :script_name with this value.