From ef8d153ffc42add53b161da57da12c24868b49de Mon Sep 17 00:00:00 2001 From: Roberto Quintanilla <1915931+vovimayhem@users.noreply.github.com> Date: Sat, 28 Nov 2020 15:54:42 -0600 Subject: [PATCH] Remove bundle load when checking activerecord database connection --- lib/on_container/dev/active_record_ops.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/on_container/dev/active_record_ops.rb b/lib/on_container/dev/active_record_ops.rb index 0ea5a37..c33d2df 100644 --- a/lib/on_container/dev/active_record_ops.rb +++ b/lib/on_container/dev/active_record_ops.rb @@ -26,15 +26,7 @@ def activerecord_config end def establish_activerecord_database_connection - unless defined?(ActiveRecord) - require 'rubygems' - require 'bundler' - - Bundler.setup(:default) - - require 'active_record' - end - + require 'active_record' unless defined?(ActiveRecord) ActiveRecord::Base.establish_connection activerecord_config ActiveRecord::Base.connection_pool.with_connection { |connection| } end