, actionpack/lib/action_controller/railtie.rb.
(actionpack/lib/action_controller/depreciated/base.rb):
module ActionController
class Base
module DeprecatedBehavior
def relative_url_root
ActiveSupport::Deprecation.warn "ActionController::Base.relative_url_root is ineffective. " <<
"Please stop using it.", caller
end
def relative_url_root=
ActiveSupport::Deprecation.warn "ActionController::Base.relative_url_root= is ineffective. " <<
"Please stop using it.", caller
end
end
end
end
actionpack/lib/action_controller/metal/compatibility.rb , setter - ENV:
self.config.relative_url_root = ENV['RAILS_RELATIVE_URL_ROOT']
, ENV: RAILS_RELATIVE_URL_ROOT="/sub_uri"