Class: Plucky::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/mongomapper_search/query.rb

Instance Method Summary collapse

Instance Method Details

#search(query, options = {}) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/mongomapper_search/query.rb', line 3

def search(query, options={})
  #Fix class search
  if first
    first.class.search(query, options, self.criteria.source)
  else
    self
  end
end