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