Module: ControllerSearchable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- api/app/api/concerns/controller_searchable.rb
Overview
Common Search Options
- [Hash]
where
: { field: value } - a specific field key and value
- [String]
search_term
- case insensitive search term
- [Array]
order_by
- one or more keys to sort by
- [String]
order_dir
- 'asc' or 'desc'
- [String]
page
(default 1) - page in pagination
- [String]
per
(default 10) - amount of records per page. 'all' can be provided for all records for a particular scope