Closed benlieb closed 3 years ago
Yes, it is.
With this flag you have the method on #pp_sql
, which produce the formatted output, while #to_sql
method from ActiveRecord
is not touched.
I think you've misread my comment. This setting PpSql.rewrite_to_sql_method=false
is ALSO causing pp_sql
to not format AT ALL.
So, it IS touched.
There is a spec for this case https://github.com/kvokka/pp_sql/blob/690dbfe9b98b6ee89b53db49ad2b94ed09fce362/test/pp_sql_test.rb#L31
If you mean something else, then, please, give me please an example or make a spec for it.
Thank you
PpSql.rewrite_to_sql_method=false
Makes
pp_sql
not format the sql. Is this intentional? It seems not...