Updated README.md to reflect optional limit and period parmas for tracks.

This commit is contained in:
Paul Coates 2014-05-19 11:14:50 -07:00
parent 1ebe1c3517
commit c51676d295

View file

@ -188,7 +188,7 @@ end
### Tracks
```ruby
# Track requests from a special user agent
# Track requests from a special user agent, supports limit and period options like throttle.
Rack::Attack.track("special_agent") do |req|
req.user_agent == "SpecialAgent"
end