提交 fbab6f95 编写于 作者: M Michael Koziarski

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

Don't print deprecation warnings every time the user reads or writes an inheritable attribute.  The warnings on declaration is enough.
上级 ab9639f9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册