Top Level Namespace

Defined Under Namespace

Modules: ActionController, ActionView, Builder, ClassInheritableAttributes, Inflector, Kernel, Test Classes: CGI, CGIMethods, Class, Logger, Object

Instance Method Summary collapse

Instance Method Details

#silence_warningsObject



1
2
3
4
5
6
# File 'lib/action_controller/support/misc.rb', line 1

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