From 0a64fb27a1837bc255bd24f18fc75ff6a61f60b9 Mon Sep 17 00:00:00 2001 From: Shardul Parab Date: Wed, 28 Dec 2016 20:36:44 +0530 Subject: 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 --- actionpack/lib/action_dispatch/http/request.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3