Skip to content

Commit

Permalink
Merge pull request #1 from mikepilat/patch-1
Browse files Browse the repository at this point in the history
Remove potential leak of config
  • Loading branch information
bpot committed Feb 29, 2012
2 parents d167833 + bfd91e9 commit f38de36
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 f38de36

Please sign in to comment.