diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2019-04-03 15:13:34 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2019-04-03 22:26:52 +0200 |
commit | ed7234860b061b7b82672e6ba51c682254cd7eb7 (patch) | |
tree | 61cbe0739fa8698b48d00afdf6cf417a83cadbb3 /actionpack/lib/action_controller | |
parent | 9864f5e3d693b53c3540637c562a5be6e1e2c66a (diff) | |
download | rails-ed7234860b061b7b82672e6ba51c682254cd7eb7.tar.gz rails-ed7234860b061b7b82672e6ba51c682254cd7eb7.tar.bz2 rails-ed7234860b061b7b82672e6ba51c682254cd7eb7.zip |
Deduplicate strings held by the router
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/renderer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/renderer.rb b/actionpack/lib/action_controller/renderer.rb index 8c16308ce7..dadf6d3445 100644 --- a/actionpack/lib/action_controller/renderer.rb +++ b/actionpack/lib/action_controller/renderer.rb @@ -116,7 +116,7 @@ module ActionController RACK_VALUE_TRANSLATION = { https: ->(v) { v ? "on" : "off" }, - method: ->(v) { v.upcase }, + method: ->(v) { -v.upcase }, } def rack_key_for(key) |