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