Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 676 Bytes

README.md

File metadata and controls

24 lines (12 loc) · 676 Bytes

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

Design guidelines

  • 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.

Filter queries

  • should have an #all method that returns a Scope

Autocomplete queries

  • should have an #autocomplete method that returns an Array