Module: Switchman::ActiveRecord::CollectionProxy

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

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



185
186
187
188
189
# File 'lib/switchman/active_record/association.rb', line 185

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

#shard(*args) ⇒ Object



191
192
193
# File 'lib/switchman/active_record/association.rb', line 191

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