aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/parameter_encoding.rb
diff options
context:
space:
mode:
authorJavier Julio <JJfutbol@gmail.com>2016-08-12 17:03:34 -0400
committerGitHub <noreply@github.com>2016-08-12 17:03:34 -0400
commit03ff576e5c583c7da91aa3e925db0c57be0cf39b (patch)
tree9cdcf0e9cb03bcb1de0ac3e64b267272467a21ed /actionpack/lib/action_controller/metal/parameter_encoding.rb
parentdd5c0696d87d82ae118d74984dbfd7569cd4e9d8 (diff)
downloadrails-03ff576e5c583c7da91aa3e925db0c57be0cf39b.tar.gz
rails-03ff576e5c583c7da91aa3e925db0c57be0cf39b.tar.bz2
rails-03ff576e5c583c7da91aa3e925db0c57be0cf39b.zip
Given a hash (Rails 5) .from_hash must be used
When initializing an `ActionDispatch::Http::Headers` object it takes a request object (Rails 5) whereas before it took a hash (Rails 4.x) but the documented example still shows a hash given to the constructor (due to commit 34fa6658dd1b779b21e586f01ee64c6f59ca1537) so this is just a documentation change to use the new `from_hash` method introduced in that earlier commit.
Diffstat (limited to 'actionpack/lib/action_controller/metal/parameter_encoding.rb')
0 files changed, 0 insertions, 0 deletions