module Tako::ActiveRecordExt::Association
Public Class Methods
included(mod)
click to toggle source
# File lib/tako/active_record_ext/association.rb, line 8 def self.included(mod) mod.extend(ShardedMethods) mod.sharded_methods :target_scope end
Public Instance Methods
current_shard()
click to toggle source
# File lib/tako/active_record_ext/association.rb, line 4 def current_shard owner.current_shard end