Disable query logging in rails 3.2.x for development?

I followed all the topics about disabling SQL query verification for an active record. Who knows how to disable it properly in rails 3.2.x?

+4
source share
1 answer

Try this attempt - sends the record of the active record to null:

if Rails.env.development? ActiveRecord::Base.logger = Logger.new('/dev/null') end 
+8
source

All Articles