Permalink
Browse files

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.
  • Loading branch information...
Earl J St Sauver
Earl J St Sauver committed Sep 8, 2013
1 parent a78a465 commit 782583235d01caaefbdc24197b57623bc975d533
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -432,10 +432,10 @@ def root(options = {})
#
# 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.

0 comments on commit 7825832

Please sign in to comment.