Method: Thredded::DbTools.silence_active_record
- Defined in:
- lib/thredded/db_tools.rb
.silence_active_record ⇒ Object
65 66 67 68 69 70 71 |
# File 'lib/thredded/db_tools.rb', line 65 def silence_active_record was = ActiveRecord::Base.logger.level ActiveRecord::Base.logger.level = Logger::WARN yield ensure ActiveRecord::Base.logger.level = was end |