Module: SqlOutput
- Defined in:
- lib/sql_output.rb
Class Method Summary collapse
Class Method Details
.start ⇒ Object
3 4 5 6 7 |
# File 'lib/sql_output.rb', line 3 def self.start ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Base.clear_active_connections! reload! end |
.stop ⇒ Object
9 10 11 12 13 |
# File 'lib/sql_output.rb', line 9 def self.stop ActiveRecord::Base.logger = nil ActiveRecord::Base.clear_active_connections! reload! end |