From bfd91e906f17fea24291c466445f2d53135af4d1 Mon Sep 17 00:00:00 2001 From: Michael Pilat Date: Wed, 22 Feb 2012 16:17:58 -0600 Subject: [PATCH] Remove potential leak of config --- lib/data_fabric/connection_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data_fabric/connection_proxy.rb b/lib/data_fabric/connection_proxy.rb index 717f8eb..0aa75ac 100644 --- a/lib/data_fabric/connection_proxy.rb +++ b/lib/data_fabric/connection_proxy.rb @@ -120,7 +120,7 @@ def current_pool name = connection_name self.class.shard_pools[name] ||= begin config = ActiveRecord::Base.configurations[name] - raise ArgumentError, "Unknown database config: #{name}, have #{ActiveRecord::Base.configurations.inspect}" unless config + raise ArgumentError, "Unknown database config: #{name}" unless config ActiveRecord::ConnectionAdapters::ConnectionPool.new(spec_for(config)) end end