Class: ActiveRecord::Turntable::Mixer::Fader::SpecifiedShard
- Inherits:
-
ActiveRecord::Turntable::Mixer::Fader
- Object
- ActiveRecord::Turntable::Mixer::Fader
- ActiveRecord::Turntable::Mixer::Fader::SpecifiedShard
- Defined in:
- lib/active_record/turntable/mixer/fader/specified_shard.rb
Instance Attribute Summary
Attributes inherited from ActiveRecord::Turntable::Mixer::Fader
#called_method, #query, #shards_query_hash
Instance Method Summary collapse
Methods inherited from ActiveRecord::Turntable::Mixer::Fader
Constructor Details
This class inherits a constructor from ActiveRecord::Turntable::Mixer::Fader
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 |
# File 'lib/active_record/turntable/mixer/fader/specified_shard.rb', line 5 def execute shard, query = @shards_query_hash.first @proxy.with_shard(shard) do shard.connection.send(@called_method, query, *@args, &@block) end end |