Hire Us

Railsware Blog

on product management, engineering, design, culture and many more...

Criteria pattern applied for organizing complex filtering

When a complex filtering solution is required to be built, the code becomes a mess more often than not. Filtering records is a straightforward task on its own: just apply the required ActiveRecord scopes based on certain conditions of the given parameters. However, when dealing with intricate systems, such as …