Method: Landable::SearchEngine#initialize
- Defined in:
- app/models/landable/search_engine.rb
#initialize(base_scope, filters, options = {}) ⇒ SearchEngine
Returns a new instance of SearchEngine.
3 4 5 6 7 8 9 10 |
# File 'app/models/landable/search_engine.rb', line 3 def initialize(base_scope, filters, = {}) @scope = base_scope order! [:order] limit! [:limit] filter_by!(filters) end |