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