From 93136e02fe8533854327504d503681368e828d9d Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sat, 3 Jun 2017 05:55:10 +0900 Subject: [PATCH] MySQL quotes with ``, not "" --- kaminari-core/test/fake_app/active_record/models.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaminari-core/test/fake_app/active_record/models.rb b/kaminari-core/test/fake_app/active_record/models.rb index 82748ed..6abb298 100644 --- a/kaminari-core/test/fake_app/active_record/models.rb +++ b/kaminari-core/test/fake_app/active_record/models.rb @@ -16,7 +16,7 @@ class User < ActiveRecord::Base cols = if connection.adapter_name == "PostgreSQL" column_names.map { |column| %{"users"."#{column}"} } else - ['"users"."id"'] + ['users.id'] end group(*cols).select("count(readerships.id) AS read_count, #{cols.join(', ')}").order('read_count DESC') }