Module: Searchlogic::Search::Implementation

Defined in:
lib/searchlogic/search/implementation.rb

Overview

Responsible for adding a “search” method into your models.

Instance Method Summary collapse

Instance Method Details

#searchlogic(conditions = {}) ⇒ Object

Additional method, gets aliased as “search” if that method is available. A lot of other libraries like to use “search” as well, so if you have a conflict like this, you can use this method directly.



9
10
11
# File 'lib/searchlogic/search/implementation.rb', line 9

def searchlogic(conditions = {})
  Search.new(self, scope(:find), conditions)
end