diff options
Diffstat (limited to 'activesupport/lib/active_support/misc.rb')
-rw-r--r-- | activesupport/lib/active_support/misc.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/misc.rb b/activesupport/lib/active_support/misc.rb new file mode 100644 index 0000000000..1ca00db1e7 --- /dev/null +++ b/activesupport/lib/active_support/misc.rb @@ -0,0 +1,8 @@ +def silence_warnings + old_verbose, $VERBOSE = $VERBOSE, nil + begin + yield + ensure + $VERBOSE = old_verbose + end +end |