aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/misc.rb
blob: 1ca00db1e7fda45525b16aa773be653c5d1b0e44 (plain) (tree)
1
2
3
4
5
6
7
8

                                       





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