From 7af1239655d1ca867714b02852adb0c993e91f07 Mon Sep 17 00:00:00 2001 From: Zach Millman Date: Wed, 23 Apr 2014 15:47:24 -0500 Subject: [PATCH] Add link to example configuration in README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 7703b1a..1c137dd 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,17 @@ Or for Rackup files: use Rack::Attack ``` +Add a `rack-attack.rb` file to `config/initalizers/`: +```ruby +# In config/initializers/rack-attack.rb +module Rack::Attack + # configuration... +end +``` + +*Tip:* The example in the wiki is a great way to get started: +[Example Configuration](https://github.com/kickstarter/rack-attack/wiki/Example-Configuration) + Optionally configure the cache store for throttling: ```ruby