aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2015-12-22 02:50:51 +1030
committerMatthew Draper <matthew@trebex.net>2015-12-22 05:48:38 +1030
commitb7ac0790682e0a56b406127891dfefc15a5eaa64 (patch)
treec553775c29c3e84f8727088578fbed90e250f33c /actionpack/lib
parentc3989819eaa8ff0be852f86f83a221bb11ffbcc3 (diff)
downloadrails-b7ac0790682e0a56b406127891dfefc15a5eaa64.tar.gz
rails-b7ac0790682e0a56b406127891dfefc15a5eaa64.tar.bz2
rails-b7ac0790682e0a56b406127891dfefc15a5eaa64.zip
Remember the parameter hash we return
Callers expect to be able to manipulate it.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/http/parameters.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/parameters.rb b/actionpack/lib/action_dispatch/http/parameters.rb
index c9df787351..cca7376ffa 100644
--- a/actionpack/lib/action_dispatch/http/parameters.rb
+++ b/actionpack/lib/action_dispatch/http/parameters.rb
@@ -43,7 +43,7 @@ module ActionDispatch
#
# {'action' => 'my_action', 'controller' => 'my_controller'}
def path_parameters
- get_header(PARAMETERS_KEY) || {}
+ get_header(PARAMETERS_KEY) || set_header(PARAMETERS_KEY, {})
end
private