Module: AliquotIndexer::AliquotScopes
- Included in:
- Aliquot
- Defined in:
- app/models/aliquot_indexer.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
17 18 19 20 21 |
# File 'app/models/aliquot_indexer.rb', line 17 def self.included(base) base.class_eval do scope :sorted_for_indexing, -> { includes(%i[tag tag2]).reorder('tag2s_aliquots.map_id ASC, tags.map_id ASC') } end end |