From 30fa7053be89de6a4615788862e052be925342c2 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Mon, 14 Aug 2006 18:15:44 +0000 Subject: Add silencing to deprecations; avoid self-scolding. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/reloadable.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'activesupport/lib/active_support/reloadable.rb') diff --git a/activesupport/lib/active_support/reloadable.rb b/activesupport/lib/active_support/reloadable.rb index 3f57723e15..baa8741b30 100644 --- a/activesupport/lib/active_support/reloadable.rb +++ b/activesupport/lib/active_support/reloadable.rb @@ -25,10 +25,11 @@ module Reloadable end def reloadable_classes - included_in_classes.select { |klass| klass.reloadable? } + ActiveSupport::Deprecation.silence do + included_in_classes.select { |klass| klass.reloadable? } + end end - # Commented out so dispatcher doesn't warn. Should we just disable Reloadable? - # deprecate :reloadable_classes + deprecate :reloadable_classes end # Captures the common pattern where a base class should not be reloaded, -- cgit v1.2.3