mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Update README.md
Update init file from module to class
This commit is contained in:
parent
0e599a4dd6
commit
3fe74441d7
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ use Rack::Attack
|
||||||
Add a `rack-attack.rb` file to `config/initalizers/`:
|
Add a `rack-attack.rb` file to `config/initalizers/`:
|
||||||
```ruby
|
```ruby
|
||||||
# In config/initializers/rack-attack.rb
|
# In config/initializers/rack-attack.rb
|
||||||
module Rack::Attack
|
class Rack::Attack
|
||||||
# your custom configuration...
|
# your custom configuration...
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue