Is it possible to specify an active record so as not to register ansi color codes when recording it?
Eg. I do not want this in my magazines.
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT count(*) AS count_all FROM `users` WHERE (`user`.id = 133) [0m
Instead, I want:
SQL (0.1ms) SELECT count(*) AS count_all FROM `users` WHERE (`user`.id = 133)
I'm not looking for a solution that involves cleaning up the mess after the fact.
ruby-on-rails activerecord
Sam saffron
source share