These are the primary filtering, and autocomplete queries. The directory is being re-organized to:
- Refactor all model specific files into their own directory
- Inherit, where possible from Queries::Query
- Dry scopes
- Factor out shared Arel/query elements to named includes for Queryies::Query
- All references to ActiveRecord models must begin with
::
, e.g.::Otu.all
- Params should be passed as a
Hash
, do the permitting of attributes in the controller.
- should have an
#all
method that returns a Scope
- should have an
#autocomplete
method that returns an Array