Module: Switchman::ActiveRecord::Associations::CollectionProxy
- Defined in:
- lib/switchman/active_record/associations.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
250 251 252 253 254 |
# File 'lib/switchman/active_record/associations.rb', line 250 def initialize(*args) super self.shard_value = scope.shard_value self.shard_source_value = :association end |
#shard ⇒ Object
256 257 258 |
# File 'lib/switchman/active_record/associations.rb', line 256 def shard(*) scope.shard(*) end |