mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
refactor: prefer require over autoload for const referenced in the same file
This commit is contained in:
parent
20fdab0c50
commit
0112405fb4
1 changed files with 2 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
require 'rack'
|
||||
require 'forwardable'
|
||||
require 'rack/attack/cache'
|
||||
require 'rack/attack/configuration'
|
||||
require 'rack/attack/path_normalizer'
|
||||
require 'rack/attack/request'
|
||||
require "ipaddr"
|
||||
|
|
@ -14,8 +16,6 @@ module Rack
|
|||
class MisconfiguredStoreError < Error; end
|
||||
class MissingStoreError < Error; end
|
||||
|
||||
autoload :Configuration, 'rack/attack/configuration'
|
||||
autoload :Cache, 'rack/attack/cache'
|
||||
autoload :Check, 'rack/attack/check'
|
||||
autoload :Throttle, 'rack/attack/throttle'
|
||||
autoload :Safelist, 'rack/attack/safelist'
|
||||
|
|
|
|||
Loading…
Reference in a new issue