From fbab6f959bf079ad33a574a38a4d71fd78db42e4 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 17 May 2011 12:03:58 -0400 Subject: [PATCH] Don't print deprecation warnings every time the user reads or writes an inheritable attribute. The warnings on declaration is enough. --- .../lib/active_support/core_ext/class/inheritable_attributes.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb index ca3db2349e..ec475134ef 100644 --- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb @@ -130,7 +130,6 @@ class Class # :nodoc: end def write_inheritable_attribute(key, value) - ActiveSupport::Deprecation.warn ClassInheritableAttributes::DEPRECATION_WARNING_MESSAGE if inheritable_attributes.equal?(EMPTY_INHERITABLE_ATTRIBUTES) @inheritable_attributes = {} end @@ -148,7 +147,6 @@ class Class # :nodoc: end def read_inheritable_attribute(key) - ActiveSupport::Deprecation.warn ClassInheritableAttributes::DEPRECATION_WARNING_MESSAGE inheritable_attributes[key] end