Skip to content

Query Objects

Dany Marcoux edited this page Jul 13, 2021 · 5 revisions

Query Objects

The idea is to extract complex SQL queries or scopes to it's own PORO class located under app/queries. Where we can better manage and test, removing some code which the implementation isn't so relevant to the models or controllers.

References:

Clone this wiki locally