aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorShardul Parab <shardulSVparab@gmail.com>2016-12-28 20:36:44 +0530
committershardulparab97 <shardulSVparab@gmail.com>2016-12-29 18:17:51 +0530
commit0a64fb27a1837bc255bd24f18fc75ff6a61f60b9 (patch)
tree594aa93d3d45332fc5f852ee83b0e4b2980f63ea /actionpack/lib/action_dispatch/http
parent7ca4b2a76d69d86e1afa92cb0f201f0168815636 (diff)
downloadrails-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/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb3
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