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