instance method
env_for_request
Ruby on Rails 8.0.4
Since v7.1.6 PrivateSignature
env_for_request()
No documentation comment.
Source
# File actionpack/lib/action_controller/renderer.rb, line 152
def env_for_request
if @env.key?("HTTP_HOST") || controller._routes.nil?
@env.dup
else
controller._routes.default_env.merge(@env)
end
end
Defined in actionpack/lib/action_controller/renderer.rb line 152
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderer