diff options
Diffstat (limited to 'config/puma.rb')
-rw-r--r-- | config/puma.rb | 6 |
1 files changed, 0 insertions, 6 deletions
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 |