instance method
rack_value_for
Ruby on Rails 7.0.10
Since v5.2.8.1 Last seen in v7.0.10 PrivateSignature
rack_value_for(key, value)
No documentation comment.
Parameters
-
keyreq -
valuereq
Source
# File actionpack/lib/action_controller/renderer.rb, line 111
def rack_value_for(key, value)
case key
when :https
value ? "on" : "off"
when :method
-value.upcase
else
value
end
end
Defined in actionpack/lib/action_controller/renderer.rb line 111
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Renderer