DEV Community

loading...

How to isolate complex queries in an object oriented fashion

mottalrd profile image Alfredo Motta ・1 min read

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!

Discussion (0)

pic
Editor guide