Permalink
Browse files

Change the order argument from ('id') to ('taggings.id')

to address ORA-00918 error
  • Loading branch information...
1 parent 5f37260 commit ef3f8093c0f4021e7304163e3ceeb8617bb83476 @yahonda committed Mar 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/join_model_test.rb
@@ -403,7 +403,7 @@ def test_has_many_through_has_many_find_by_id
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

0 comments on commit ef3f809

Please sign in to comment.