Permalink
Browse files

Fix Rails 3.2 support

  • Loading branch information...
bpot committed Apr 3, 2012
1 parent ae05ccb commit 0f4942f06049b101e883626d21f8595b740722cc
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/data_fabric/extensions.rb
@@ -27,8 +27,7 @@ def data_fabric(options)
connection_handler.instance_eval do
if @class_to_pool
# Rails 3.2
- @connection_pools[pool_proxy.spec] ||= pool_proxy
- @class_to_pool[klass_name] = connection_pools[pool_proxy.spec]
+ @class_to_pool[klass_name] = pool_proxy
else
# <= Rails 3.1
@connection_pools[klass_name] = pool_proxy

0 comments on commit 0f4942f

Please sign in to comment.