Module: Switchman::ActiveRecord::CollectionProxy

Defined in:
lib/switchman/active_record/association.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



159
160
161
162
163
# File 'lib/switchman/active_record/association.rb', line 159

def initialize(*args)
  super
  self.shard_value = scope.shard_value
  self.shard_source_value = :association
end

#shard(*args) ⇒ Object



165
166
167
# File 'lib/switchman/active_record/association.rb', line 165

def shard(*args)
  scope.shard(*args)
end