diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 05:01:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-11 05:01:01 +0000 |
commit | 8aa63a78b8ac238dd379108a5cb2cc5cc5418a40 (patch) | |
tree | 0268d6cd843470a06e1139ca6a2c131beebe30af /activesupport | |
parent | 42093fff9422ef66b595ef55a1e28df01a6fd2fc (diff) | |
download | rails-8aa63a78b8ac238dd379108a5cb2cc5cc5418a40.tar.gz rails-8aa63a78b8ac238dd379108a5cb2cc5cc5418a40.tar.bz2 rails-8aa63a78b8ac238dd379108a5cb2cc5cc5418a40.zip |
Added test to ensure that silence_warnings also returned its value
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel.rb b/activesupport/lib/active_support/core_ext/kernel.rb index d4c3114488..54979c1a1a 100644 --- a/activesupport/lib/active_support/core_ext/kernel.rb +++ b/activesupport/lib/active_support/core_ext/kernel.rb @@ -18,7 +18,7 @@ module Kernel # Sets $VERBOSE to nil for the duration of the block and back to its original value afterwards. # # silence_warnings do - # noisy_call # no warning voiced + # value = noisy_call # no warning voiced # end # # noisy_call # warning voiced |