mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-26 14:57:47 +00:00
docs: correct instrumentation example
This commit is contained in:
parent
9e90b20122
commit
b1558d022f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
ActiveSupport::Notifications.subscribe('rack.attack') do |name, start, finish, request_id, req|
|
ActiveSupport::Notifications.subscribe('rack.attack') do |name, start, finish, request_id, payload|
|
||||||
puts req.inspect
|
puts payload[:request].inspect
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue