Module: AliquotIndexer::Indexable
- Included in:
- Lane
- Defined in:
- app/models/aliquot_indexer.rb
Overview
Include in Receptacles to allow idempotent indexing by calling index_aliquots
Instance Method Summary collapse
Instance Method Details
#index_aliquots ⇒ Object
26 27 28 29 30 31 |
# File 'app/models/aliquot_indexer.rb', line 26 def index_aliquots # Skip indexing if already present. Makes the call idempotent and also # reduces the downtime required for the initial migration. Race conditions # are unlikely, and will be pretty harmless if they do occur. AliquotIndexer.index(self) if aliquot_indicies.blank? end |