mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't print deprecation warnings every time the user reads or writes an inheritable attribute. The warnings on declaration is enough.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user