From daeaac702795f2ab6bb882abef1a349b1b799b22 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Thu, 3 Mar 2016 21:28:58 +0100 Subject: [PATCH] [ci skip] Fix constrain_to documentation. Forgot to update the documentation on the line just above the one I was changing in 4933132. Well done, Kasper :+1: --- actionpack/lib/action_dispatch/middleware/ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/middleware/ssl.rb b/actionpack/lib/action_dispatch/middleware/ssl.rb index c3f4034ed5..ab3077b308 100644 --- a/actionpack/lib/action_dispatch/middleware/ssl.rb +++ b/actionpack/lib/action_dispatch/middleware/ssl.rb @@ -35,7 +35,7 @@ module ActionDispatch # expire HSTS immediately. Setting `hsts: false` is a shortcut for # `hsts: { expires: 0 }`. # - # Redirection can be constrained to only whitelisted requests with `constrain_to`: + # Requests can opt-out of redirection with `exclude`: # # config.ssl_options = { redirect: { exclude: -> request { request.path =~ /healthcheck/ } } } class SSL -- GitLab