Skip to content

Commit f81f848

Browse files
author
Mattia Roccoberton
committed
Fix deprecation: "using legacy connection handling is deprecated"
1 parent 186ff95 commit f81f848

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/dummy/config/application.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class Application < Rails::Application
1313
# Application configuration can go into files in config/initializers
1414
# -- all .rb files in that directory are automatically loaded after loading
1515
# the framework and any gems in your application.
16+
17+
if (Rails::VERSION::MAJOR == 6 && Rails::VERSION::MINOR == 1) || Rails::VERSION::MAJOR >= 7
18+
config.active_record.legacy_connection_handling = false
19+
end
1620
end
1721
end
18-

0 commit comments

Comments
 (0)