diff options
author | Michael Koziarski <michael@koziarski.com> | 2011-05-17 12:03:58 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2011-05-17 12:03:58 -0400 |
commit | fbab6f959bf079ad33a574a38a4d71fd78db42e4 (patch) | |
tree | 3a3e07f6fd96b737844fa93b8d6b60e1fd480fb4 /activesupport | |
parent | ab9639f945b1f5de40b2889ce47953dad645bdf5 (diff) | |
download | rails-fbab6f959bf079ad33a574a38a4d71fd78db42e4.tar.gz rails-fbab6f959bf079ad33a574a38a4d71fd78db42e4.tar.bz2 rails-fbab6f959bf079ad33a574a38a4d71fd78db42e4.zip |
Don't print deprecation warnings every time the user reads or writes an inheritable attribute. The warnings on declaration is enough.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb | 2 |
1 files changed, 0 insertions, 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 |