module Tako::ActiveRecordExt::CollectionProxy
Constants
- SHARDED_METHODS
Public Class Methods
included(mod)
click to toggle source
# File lib/tako/active_record_ext/collection_proxy.rb, line 28 def self.included(mod) mod.extend(ShardedMethods) mod.sharded_methods *SHARDED_METHODS end
Public Instance Methods
current_shard()
click to toggle source
# File lib/tako/active_record_ext/collection_proxy.rb, line 33 def current_shard @association.owner.current_shard end