Module: ActsAsIndexed::SingletonMethods

Defined in:
lib/acts_as_indexed/singleton_methods.rb

Overview

Adds model class singleton methods.

Instance Method Summary collapse

Instance Method Details

#find_with_index(query = '', find_options = {}, options = {}) ⇒ Object

Finds instances matching the terms passed in query.

See ActsAsIndexed::ClassMethods#search_index.



9
10
11
# File 'lib/acts_as_indexed/singleton_methods.rb', line 9

def find_with_index(query='', find_options = {}, options = {})
  search_index(query, find_options, options)
end