diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 04:58:27 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 04:58:27 +0000 |
commit | 3cf7a0a46037f32b95b5ffb358cb898233d5c5db (patch) | |
tree | 7a780b46eedb55daa761296005b163fdeea5f3e4 /activesupport/lib/active_support/misc.rb | |
parent | 4b53e26ef612d870a01e646c45bcc4198ad3bd1a (diff) | |
download | rails-3cf7a0a46037f32b95b5ffb358cb898233d5c5db.tar.gz rails-3cf7a0a46037f32b95b5ffb358cb898233d5c5db.tar.bz2 rails-3cf7a0a46037f32b95b5ffb358cb898233d5c5db.zip |
Added Kernel#silence_warnings and puts it into use throughout the framework
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/misc.rb')
-rw-r--r-- | activesupport/lib/active_support/misc.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/misc.rb b/activesupport/lib/active_support/misc.rb deleted file mode 100644 index 1ca00db1e7..0000000000 --- a/activesupport/lib/active_support/misc.rb +++ /dev/null @@ -1,8 +0,0 @@ -def silence_warnings - old_verbose, $VERBOSE = $VERBOSE, nil - begin - yield - ensure - $VERBOSE = old_verbose - end -end |