aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/join_model_test.rb
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-03-28 13:41:47 -0400
committerYasuo Honda <yasuo.honda@gmail.com>2012-03-28 13:41:47 -0400
commitef3f8093c0f4021e7304163e3ceeb8617bb83476 (patch)
tree41e7355a4cfd071e1b0a98e74f8cd99b8ceb58b3 /activerecord/test/cases/associations/join_model_test.rb
parent5f3726091851326d4976624db374a20d356b1630 (diff)
downloadrails-ef3f8093c0f4021e7304163e3ceeb8617bb83476.tar.gz
rails-ef3f8093c0f4021e7304163e3ceeb8617bb83476.tar.bz2
rails-ef3f8093c0f4021e7304163e3ceeb8617bb83476.zip
Change the order argument from ('id') to ('taggings.id')
to address ORA-00918 error
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 6f5644ada0..f4592f7d0e 100644
--- a/activerecord/test/cases/associations/join_model_test.rb
+++ b/activerecord/test/cases/associations/join_model_test.rb
@@ -403,7 +403,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.order(:id)
+ assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).tagging.order('taggings.id')
end
def test_has_many_through_polymorphic_has_many