Created
August 15, 2016 10:48
-
-
Save thepoho/777d3c8d0ceb0d7c85c92b7077bd29e9 to your computer and use it in GitHub Desktop.
Turn off activerecord SQL logging in dev mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.after_initialize do | |
ActiveRecord::Base.logger = Rails.logger.clone | |
ActiveRecord::Base.logger.level = Logger::INFO | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment