Skip to content

Commit

Permalink
Remove potential leak of config
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepilat committed Feb 22, 2012
1 parent d167833 commit bfd91e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data_fabric/connection_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfd91e9

Please sign in to comment.