Building complex queries in ruby can make your code quite difficult to read, manage and reuse. In this blog post I'll present a simple method to decorate active record objects to make your queries fun again!
Continue reading here: http://www.alfredo.motta.name/how-to-isolate-complex-queries-in-an-object-oriented-fashion/
Looking forward to hearing your comments!
Top comments (0)