1
0
Fork 0

Rack::Attack middleware is now used by default

This commit is contained in:
Alex Kotov 2019-10-18 08:06:27 +05:00
parent d8546e69f8
commit 74fa9205c0
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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