Module: Searchlogic::Search::Implementation
- Included in:
- ActiveRecord::Base
- Defined in:
- lib/searchlogic/search.rb
Overview
Responsible for adding a “search” method into your models.
Instance Method Summary collapse
-
#searchlogic(conditions = {}) ⇒ Object
Additional method, gets aliased as “search” if that method is available.
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.
24 25 26 |
# File 'lib/searchlogic/search.rb', line 24 def searchlogic(conditions = {}) Search.new(self, scope(:find), conditions) end |