aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/join_model_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-03-16 18:54:34 +0000
committerJon Leighton <j@jonathanleighton.com>2011-03-16 18:54:34 +0000
commit9abc94c44516afdcfe4a3b202c336c9578fd6d0d (patch)
treec6af8dd568ec7bbd522c91c16b704e184e250968 /activerecord/test/cases/associations/join_model_test.rb
parent37d93ea16046add35fecd8c279e868869ee744a5 (diff)
downloadrails-9abc94c44516afdcfe4a3b202c336c9578fd6d0d.tar.gz
rails-9abc94c44516afdcfe4a3b202c336c9578fd6d0d.tar.bz2
rails-9abc94c44516afdcfe4a3b202c336c9578fd6d0d.zip
oracle, y u defy me
Diffstat (limited to 'activerecord/test/cases/associations/join_model_test.rb')
-rw-r--r--activerecord/test/cases/associations/join_model_test.rb2
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 543eff7d8b..f54d69e7fa 100644
--- a/activerecord/test/cases/associations/join_model_test.rb
+++ b/activerecord/test/cases/associations/join_model_test.rb
@@ -305,7 +305,7 @@ class AssociationsJoinModelTest < ActiveRecord::TestCase
end
def test_has_many_through_with_custom_primary_key_on_has_many_source
- assert_equal [authors(:david), authors(:bob)], posts(:thinking).authors_using_custom_pk.order(:id)
+ assert_equal [authors(:david), authors(:bob)], posts(:thinking).authors_using_custom_pk.order('authors.id')
end
def test_both_scoped_and_explicit_joins_should_be_respected