aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/deprecation.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-03-24 19:46:07 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-24 19:46:07 -0700
commit712baccef56974f754d77775d04924bfa52ca76e (patch)
tree05aacd209c49078bc3668e3e1ce2dc7be41d44c4 /activesupport/lib/active_support/deprecation.rb
parenta27ee86c38da84a7b71bd04efc1643a3b526e1d2 (diff)
downloadrails-712baccef56974f754d77775d04924bfa52ca76e.tar.gz
rails-712baccef56974f754d77775d04924bfa52ca76e.tar.bz2
rails-712baccef56974f754d77775d04924bfa52ca76e.zip
Remove unnecessary use of Kernel#silence_warnings
Diffstat (limited to 'activesupport/lib/active_support/deprecation.rb')
-rw-r--r--activesupport/lib/active_support/deprecation.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb
index d20151661b..e7b35fc74e 100644
--- a/activesupport/lib/active_support/deprecation.rb
+++ b/activesupport/lib/active_support/deprecation.rb
@@ -119,9 +119,7 @@ module ActiveSupport
end
class DeprecationProxy #:nodoc:
- silence_warnings do
- instance_methods.each { |m| undef_method m unless m =~ /^__/ }
- end
+ instance_methods.each { |m| undef_method m unless m =~ /^__/ }
# Don't give a deprecation warning on inspect since test/unit and error
# logs rely on it for diagnostics.