diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-08-10 17:42:48 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-08-10 23:28:08 +0100 |
commit | 6e57d5c5840716b63851f02a6a806ba968065bca (patch) | |
tree | 241f62b761113c87ea03f81fa33373e8f5c74ac3 /activerecord/test/cases/associations/join_model_test.rb | |
parent | 5b3bb61f3fb82c7300d4dac374fe7aeafff6bda0 (diff) | |
download | rails-6e57d5c5840716b63851f02a6a806ba968065bca.tar.gz rails-6e57d5c5840716b63851f02a6a806ba968065bca.tar.bz2 rails-6e57d5c5840716b63851f02a6a806ba968065bca.zip |
Use method compilation for association methods
Method compilation provides better performance and I think the code
comes out cleaner as well.
A knock on effect is that methods that get redefined produce warnings. I
think this is a good thing. I had to deal with a bunch of warnings
coming from our tests, though.
Diffstat (limited to 'activerecord/test/cases/associations/join_model_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/join_model_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/join_model_test.rb b/activerecord/test/cases/associations/join_model_test.rb index 3cea20527e..86893ec4b3 100644 --- a/activerecord/test/cases/associations/join_model_test.rb +++ b/activerecord/test/cases/associations/join_model_test.rb @@ -385,7 +385,7 @@ class AssociationsJoinModelTest < ActiveRecord::TestCase end def test_has_many_through_polymorphic_has_one - assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).tagging + assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).taggings_2 end def test_has_many_through_polymorphic_has_many |