If you are using Rails and you find yourself fighting validations more often than you would like to, then you should consider watching my talk I gave at the London Ruby User Group this February about on dry-validation. I will present the API surface which uses a schema based declarative approach and I will compare…
Tag: designpattern
How to isolate complex queries in an object oriented fashion
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!