Explain all SQL statements in rails

1 · Emad Elsaid · Jan. 1, 2025, 11:38 a.m.
Summary
This blog post explains a simplified Rails gem that allows developers to view all executed SQL statements during development. It details the implementation of the Explainer class that extends ActiveSupport::LogSubscriber to debug SQL executions and clarify their workings, while also cautioning against committing the debug code to production.