ruby

Writing my first monkey patch in rails

The motivation From last few months we are facing an error which have become hard to replicate in development environment. The error is This error occurs rarely and replicating have become hard. The idea was to log the query and see why the query is forming correctly. Then I used, query.to_sql to log the query…