Merge pull request #376 from carlos-contreras/fix-safelist-copy-on-readme

Fix copy on safelist description
This commit is contained in:
Gonzalo Rodriguez 2018-07-31 18:05:55 -03:00 committed by GitHub
commit 516660b55c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ Rack::Attack.safelist_ip("5.6.7.0/24")
#### `safelist(name, &block)`
Name your custom safelist and make your ruby-block argument return a truthy value if you want the request to be blocked, and falsy otherwise.
Name your custom safelist and make your ruby-block argument return a truthy value if you want the request to be allowed, and falsy otherwise.
The request object is a [Rack::Request](http://www.rubydoc.info/gems/rack/Rack/Request).