Module: Switchman::ActiveRecord::Associations::CollectionProxy
- Defined in:
- lib/switchman/active_record/associations.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
264 265 266 267 268 |
# File 'lib/switchman/active_record/associations.rb', line 264 def initialize(*args) super self.shard_value = scope.shard_value self.shard_source_value = :association end |
#shard(*args) ⇒ Object
270 271 272 |
# File 'lib/switchman/active_record/associations.rb', line 270 def shard(*args) scope.shard(*args) end |