Permalink
Browse files

Don't print deprecation warnings every time the user reads or writes …

…an inheritable attribute. The warnings on declaration is enough.
  • Loading branch information...
NZKoz committed May 17, 2011
1 parent ab9639f commit fbab6f959bf079ad33a574a38a4d71fd78db42e4
Showing with 0 additions and 2 deletions.
  1. +0 −2 activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb
@@ -130,7 +130,6 @@ def inheritable_attributes
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 @@ def write_inheritable_hash(key, hash)
end
def read_inheritable_attribute(key)
- ActiveSupport::Deprecation.warn ClassInheritableAttributes::DEPRECATION_WARNING_MESSAGE
inheritable_attributes[key]
end

0 comments on commit fbab6f9

Please sign in to comment.