lint pass 2 (#8878)
* Code quality pass * Typofix * Update applications_controller_spec.rb * Update applications_controller_spec.rb
This commit is contained in:
parent
a46ab86adf
commit
0a4739c732
15 changed files with 47 additions and 46 deletions
|
@ -42,7 +42,7 @@ class Rack::Attack
|
|||
# (blocklist & throttles are skipped)
|
||||
Rack::Attack.safelist('allow from localhost') do |req|
|
||||
# Requests are allowed if the return value is truthy
|
||||
'127.0.0.1' == req.ip || '::1' == req.ip
|
||||
req.ip == '127.0.0.1' || req.ip == '::1'
|
||||
end
|
||||
|
||||
throttle('throttle_authenticated_api', limit: 300, period: 5.minutes) do |req|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue