Rack::Attack middleware is now used by default
This commit is contained in:
parent
d8546e69f8
commit
74fa9205c0
4 changed files with 4 additions and 6 deletions
|
@ -117,7 +117,4 @@ Rails.application.configure do
|
|||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
# Middleware.
|
||||
config.middleware.use Rack::Attack
|
||||
end
|
||||
|
|
|
@ -117,7 +117,4 @@ Rails.application.configure do
|
|||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
# Middleware.
|
||||
config.middleware.use Rack::Attack
|
||||
end
|
||||
|
|
|
@ -41,3 +41,5 @@ end
|
|||
# recommended as it will mask a lot of errors for you!
|
||||
#
|
||||
ActionController::Base.allow_rescue = false
|
||||
|
||||
Rack::Attack.enabled = false
|
||||
|
|
|
@ -51,6 +51,8 @@ end
|
|||
|
||||
ActiveJob::Base.queue_adapter = :test
|
||||
|
||||
Rack::Attack.enabled = false
|
||||
|
||||
RSpec.configure do |config|
|
||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
||||
config.fixture_path = Rails.root.join('fixtures').to_s
|
||||
|
|
Reference in a new issue