diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-03-03 21:28:58 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-03-03 21:28:58 +0100 |
commit | daeaac702795f2ab6bb882abef1a349b1b799b22 (patch) | |
tree | 6a9d5649834ea354a7dd4d48d9c0da8472dd2a4e /actionpack/lib | |
parent | 493313228aab26a7e8a241c1be2a73d52ba60f0d (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/ssl.rb | 2 |
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 |