diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-30 15:09:50 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-30 23:18:40 +0000 |
commit | 61489dc6844539c86558f00670802c71927f9b51 (patch) | |
tree | 8f35ad7374ada21042b53265c6db3de167ad45dd /activerecord/test | |
parent | 4c33d517d9f4e6312ab23398cfaa6ca5a6177315 (diff) | |
download | rails-61489dc6844539c86558f00670802c71927f9b51.tar.gz rails-61489dc6844539c86558f00670802c71927f9b51.tar.bz2 rails-61489dc6844539c86558f00670802c71927f9b51.zip |
Use inheritance to avoid special-case code for the 'id' method
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 9300c57819..0327e5aea8 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -675,7 +675,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase topic = Topic.new(:id => 5) topic.id = 5 - topic.method(:id).owner.send(:remove_method, :id) + topic.method(:id).owner.send(:undef_method, :id) assert_deprecated do assert_equal 5, topic.id |