Merge pull request #5479 from janimo/puma-cleanup

Remove legacy code from Puma config.
This commit is contained in:
Javi Martín
2024-04-06 03:05:32 +02:00
committed by GitHub

View File

@@ -23,13 +23,3 @@ on_restart do
puts "Refreshing Gemfile"
ENV["BUNDLE_GEMFILE"] = ""
end
before_fork do
ActiveRecord::Base.connection_pool.disconnect!
end
on_worker_boot do
ActiveSupport.on_load(:active_record) do
ActiveRecord::Base.establish_connection
end
end