Module: Switchman::ActiveRecord::CollectionAssociation
- Defined in:
- lib/switchman/active_record/association.rb
Instance Method Summary collapse
Instance Method Details
#get_records ⇒ Object
50 51 52 53 54 55 |
# File 'lib/switchman/active_record/association.rb', line 50 def get_records shards = reflection.[:multishard] && owner.respond_to?(:associated_shards) ? owner.associated_shards : [owner.shard] Shard.with_each_shard(shards, [klass.shard_category]) do super end end |