Skip to content

Commit

Permalink
Blacklist refferenced in docs is actually whitelist
Browse files Browse the repository at this point in the history
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 committed Sep 8, 2013
1 parent a78a465 commit 7825832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 7825832

Please sign in to comment.