diff options
author | Shardul Parab <shardulSVparab@gmail.com> | 2016-12-28 20:36:44 +0530 |
---|---|---|
committer | shardulparab97 <shardulSVparab@gmail.com> | 2016-12-29 18:17:51 +0530 |
commit | 0a64fb27a1837bc255bd24f18fc75ff6a61f60b9 (patch) | |
tree | 594aa93d3d45332fc5f852ee83b0e4b2980f63ea /actionpack | |
parent | 7ca4b2a76d69d86e1afa92cb0f201f0168815636 (diff) | |
download | rails-0a64fb27a1837bc255bd24f18fc75ff6a61f60b9.tar.gz rails-0a64fb27a1837bc255bd24f18fc75ff6a61f60b9.tar.bz2 rails-0a64fb27a1837bc255bd24f18fc75ff6a61f60b9.zip |
Update request.rb --ci skip
Documentation for ActionDispatch::Request#key? [ci skip]
Update request.rb --ci skip
Documentation for ActionDispatch::Request#key? [ci skip]
Also made change after the review by @rafaelfranca .
Update request.rb --ci skip
Documentation for ActionDispatch::Request#key? [ci skip]
Also made change after the review by @rafaelfranca .
Update request.rb --ci skip
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index a886358399..943adc1d05 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -85,6 +85,9 @@ module ActionDispatch end end + # Returns true if the request has a header matching the given key parameter. + # + # request.key? :ip_spoofing_check #=> true def key?(key) has_header? key end |