Class: Upframework::BaseSearch
- Inherits:
-
BaseService
- Object
- BaseService
- Upframework::BaseSearch
- Defined in:
- app/searches/upframework/base_search.rb
Constant Summary collapse
- DEFAULT_PAGE =
1
- DEFAULT_PER_PAGE =
12
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
Methods inherited from BaseService
#error?, #error_messages, #execute, #initialize, #post_initialize, run, #success?
Constructor Details
This class inherits a constructor from Upframework::BaseService
Instance Method Details
#query(field) ⇒ Object
9 10 11 |
# File 'app/searches/upframework/base_search.rb', line 9 def query(field) @model_scope = yield if field.present? end |
#result ⇒ Object
5 6 7 |
# File 'app/searches/upframework/base_search.rb', line 5 def result @model_scope end |