aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/support/misc.rb
blob: db842f60618472ee5053b8c8521985d88cfc9eac (plain) (tree)
1
2
3
4
5
6





                                       
def silence_warnings
  old_verbose, $VERBOSE = $VERBOSE, nil
  result = yield
  $VERBOSE = old_verbose
  return result
end