Module: Kernel

Defined in:
lib/multi_rails/core_extensions.rb

Overview

Add some nice to haves from ActiveSupport

Instance Method Summary collapse

Instance Method Details

#silence_warningsObject



4
5
6
7
8
9
# File 'lib/multi_rails/core_extensions.rb', line 4

def silence_warnings
  old_verbose, $VERBOSE = $VERBOSE, nil
  yield
ensure
  $VERBOSE = old_verbose
end