module Octoball::ConnectionHandlerSetCurrentShard

Public Instance Methods

retrieve_connection(spec_name, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard) click to toggle source
Calls superclass method
# File lib/octoball/connection_adapters.rb, line 5
def retrieve_connection(spec_name, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
  conn = super
  conn.current_shard = shard
  conn
end