Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_relationship_management.rb

Class Method Summary collapse

Class Method Details

.silenceObject



80
81
82
83
84
85
86
# File 'lib/advanced_relationship_management.rb', line 80

def self.silence
  old_logger = ActiveRecord::Base.logger
  ActiveRecord::Base.logger = nil
  yield
ensure
  ActiveRecord::Base.logger = old_logger
end