feat: provide possibility of rescuing any Rack::Attack error

This commit is contained in:
Gonzalo Rodriguez 2019-10-11 18:02:04 -03:00
parent 7b5f9c07c8
commit f65431f788
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1

View file

@ -10,8 +10,9 @@ require 'rack/attack/railtie' if defined?(::Rails)
module Rack
class Attack
class MisconfiguredStoreError < StandardError; end
class MissingStoreError < StandardError; end
class Error < StandardError; end
class MisconfiguredStoreError < Error; end
class MissingStoreError < Error; end
autoload :Cache, 'rack/attack/cache'
autoload :Check, 'rack/attack/check'