Module: Searchgasm::Search::Searching
- Included in:
- Base
- Defined in:
- lib/searchgasm/search/searching.rb
Overview
Searchgasm Searching
Implements searching functionality for searchgasm. Searchgasm::Search::Base and Searchgasm::Conditions::Base can both search and include this module.
Constant Summary collapse
- SEARCH_METHODS =
Use these methods just like you would in ActiveRecord
[:all, :find, :first]
- CALCULATION_METHODS =
[:average, :calculate, :count, :maximum, :minimum, :sum]
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
12 13 14 15 16 |
# File 'lib/searchgasm/search/searching.rb', line 12 def self.included(klass) klass.class_eval do attr_accessor :scope end end |