I followed all topics on disabling SQL query logging for active record. Who knows how to disable it correctly in rails 3.2.x ?
Give this a try - sends the active record logging to null:
if Rails.env.development?
ActiveRecord::Base.logger = Logger.new('/dev/null')
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With