From 3e7c3986326649895aab388bc3c91a0ec3bd6853 Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 13:27:52 +0200 Subject: Remove broken code --- config/puma.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'config') diff --git a/config/puma.rb b/config/puma.rb index 8b894d0..b31c6d3 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -53,9 +53,3 @@ preload_app! # Allow puma to be restarted by `rails restart` command. plugin :tmp_restart - -on_worker_boot do - require "active_record" - ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished - ActiveRecord::Base.establish_connection(YAML.load_file("#{app_dir}/config/database.yml")[rails_env]) -end -- cgit v1.2.3