aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/support/misc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/support/misc.rb')
-rw-r--r--actionpack/lib/action_controller/support/misc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/support/misc.rb b/actionpack/lib/action_controller/support/misc.rb
new file mode 100644
index 0000000000..db842f6061
--- /dev/null
+++ b/actionpack/lib/action_controller/support/misc.rb
@@ -0,0 +1,6 @@
+def silence_warnings
+ old_verbose, $VERBOSE = $VERBOSE, nil
+ result = yield
+ $VERBOSE = old_verbose
+ return result
+end