Module: Tako::ActiveRecordExt::Association
- Defined in:
- lib/tako/active_record_ext/association.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
8 9 10 11 |
# File 'lib/tako/active_record_ext/association.rb', line 8 def self.included(mod) mod.extend(ShardedMethods) mod.sharded_methods :target_scope end |
Instance Method Details
#current_shard ⇒ Object
4 5 6 |
# File 'lib/tako/active_record_ext/association.rb', line 4 def current_shard owner.current_shard end |