diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-06-06 18:36:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 18:36:24 +0900 |
commit | 497256747905ad6bcea78b8d7e1e4458dc291d8c (patch) | |
tree | 7eea651fd6b65a0118b1f97ed2c9443da3fc0710 /activerecord/test/cases/associations/eager_test.rb | |
parent | 76d260797eb4195ad5dac916e46467f097ec375f (diff) | |
parent | 7696f44f6ff4d3eda8510b67eaab0441153430c3 (diff) | |
download | rails-497256747905ad6bcea78b8d7e1e4458dc291d8c.tar.gz rails-497256747905ad6bcea78b8d7e1e4458dc291d8c.tar.bz2 rails-497256747905ad6bcea78b8d7e1e4458dc291d8c.zip |
Merge pull request #36420 from kamipo/quoted_identifier_regex
Allow quoted identifier string as safe SQL string
Diffstat (limited to 'activerecord/test/cases/associations/eager_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/eager_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb index f7aad9d775..c270d60b2f 100644 --- a/activerecord/test/cases/associations/eager_test.rb +++ b/activerecord/test/cases/associations/eager_test.rb @@ -523,7 +523,7 @@ class EagerAssociationTest < ActiveRecord::TestCase def test_eager_association_loading_with_belongs_to_and_order_string_with_quoted_table_name quoted_posts_id = Comment.connection.quote_table_name("posts") + "." + Comment.connection.quote_column_name("id") assert_nothing_raised do - Comment.includes(:post).references(:posts).order(Arel.sql(quoted_posts_id)) + Comment.includes(:post).references(:posts).order(quoted_posts_id) end end |