aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl J St Sauver <estsauver@ejs.local>2013-09-08 14:25:38 -0700
committerEarl J St Sauver <estsauver@ejs.local>2013-09-08 14:25:38 -0700
commit782583235d01caaefbdc24197b57623bc975d533 (patch)
tree54b3a2affc098bebc4f73ab9f85d6957f05762bd
parenta78a4652c2f5ec76d3a9ed91f80789716b99a37c (diff)
downloadrails-782583235d01caaefbdc24197b57623bc975d533.tar.gz
rails-782583235d01caaefbdc24197b57623bc975d533.tar.bz2
rails-782583235d01caaefbdc24197b57623bc975d533.zip
Blacklist refferenced in docs is actually whitelist
The docs refference a blacklist, but really what's being described is a whitelist. Anything that matches the constraint gets through to the path.
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 288ce3e867..f4dd075153 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -432,10 +432,10 @@ module ActionDispatch
#
# match 'json_only', constraints: { format: 'json' }
#
- # class Blacklist
+ # class Whitelist
# def matches?(request) request.remote_ip == '1.2.3.4' end
# end
- # match 'path', to: 'c#a', constraints: Blacklist.new
+ # match 'path', to: 'c#a', constraints: Whitelist.new
#
# See <tt>Scoping#constraints</tt> for more examples with its scope
# equivalent.