aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-03-03 21:28:58 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-03-03 21:28:58 +0100
commitdaeaac702795f2ab6bb882abef1a349b1b799b22 (patch)
tree6a9d5649834ea354a7dd4d48d9c0da8472dd2a4e /actionpack/lib/action_dispatch
parent493313228aab26a7e8a241c1be2a73d52ba60f0d (diff)
downloadrails-daeaac702795f2ab6bb882abef1a349b1b799b22.tar.gz
rails-daeaac702795f2ab6bb882abef1a349b1b799b22.tar.bz2
rails-daeaac702795f2ab6bb882abef1a349b1b799b22.zip
[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:
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/middleware/ssl.rb2
1 files changed, 1 insertions, 1 deletions
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