From 5945fbcdf537b87f92a4d942d44a6ce140551e8e Mon Sep 17 00:00:00 2001 From: brchristian Date: Sat, 16 Jan 2021 10:19:33 -0800 Subject: [PATCH] Use single quotes in example configuration --- docs/example_configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/example_configuration.md b/docs/example_configuration.md index e1aaa38..b30a4ab 100644 --- a/docs/example_configuration.md +++ b/docs/example_configuration.md @@ -59,7 +59,7 @@ class Rack::Attack # throttle logins for another user and force their login requests to be # denied, but that's not very common and shouldn't happen to you. (Knock # on wood!) - throttle("logins/email", limit: 5, period: 20.seconds) do |req| + throttle('logins/email', limit: 5, period: 20.seconds) do |req| if req.path == '/login' && req.post? # Normalize the email, using the same logic as your authentication process, to # protect against rate limit bypasses. Return the normalized email if present, nil otherwise.