Module: Switchman::ActiveRecord::Associations::CollectionProxy
- Defined in:
- lib/switchman/active_record/associations.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
275 276 277 278 279 |
# File 'lib/switchman/active_record/associations.rb', line 275 def initialize(*args) super self.shard_value = scope.shard_value self.shard_source_value = :association end |
#shard(*args) ⇒ Object
281 282 283 |
# File 'lib/switchman/active_record/associations.rb', line 281 def shard(*args) scope.shard(*args) end |