disable query logging in rails 3.2.x for development?
activerecord, logging, ruby-on-rails-3, ruby-on-rails-3.2, sql
Solution
Give this a try - sends the active record logging to null:
if Rails.env.development?
ActiveRecord::Base.logger = Logger.new('/dev/null')
end
Problem
I followed all topics on disabling SQL query logging for active record. Who knows how to disable it correctly in rails 3.2.x ?