module Tako::ActiveRecordExt::ConnectionHandling
Public Instance Methods
connection()
click to toggle source
Calls superclass method
# File lib/tako/active_record_ext/connection_handling.rb, line 4 def connection return Tako::Repository.create_proxy(@force_shard).connection if force_shard? if Tako::ProxyStack.top Tako::ProxyStack.top.connection else super end end