Class: Mongoid::Relations::Referenced::Many

Inherits:
Relations::Many
  • Object
show all
Defined in:
lib/locomotive/search/concerns/mongoid/indexable_relationships.rb

Instance Method Summary collapse

Instance Method Details

#to_indexable(depth = 0) ⇒ Object



8
9
10
11
12
# File 'lib/locomotive/search/concerns/mongoid/indexable_relationships.rb', line 8

def to_indexable(depth = 0)
  criteria.map do |doc|
    doc.to_indexable(depth)
  end
end