lib/octopus/proxy.rb in ar-octopus-0.0.22 vs lib/octopus/proxy.rb in ar-octopus-0.0.23

- old
+ new

@@ -126,17 +126,12 @@ ActiveRecord::ConnectionAdapters::ConnectionPool.new(ActiveRecord::Base::ConnectionSpecification.new(adapter, config)) end def initialize_adapter(adapter) begin - gem "activerecord-#{adapter}-adapter" require "active_record/connection_adapters/#{adapter}_adapter" rescue LoadError - begin - require "active_record/connection_adapters/#{adapter}_adapter" - rescue LoadError - raise "Please install the #{adapter} adapter: `gem install activerecord-#{adapter}-adapter` (#{$!})" - end + raise "Please install the #{adapter} adapter: `gem install activerecord-#{adapter}-adapter` (#{$!})" end end def should_clean_connection?(method) method.to_s =~ /insert|select|execute/ && !self.current_group && !@replicated && !self.block