Skip to content

Commit 3d33375

Browse files
committed
Update calculations.rb
1 parent a4bb02e commit 3d33375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/active_record/connection_adapters/sqlserver/core_ext/calculations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ module CoreExt
1010
module Calculations
1111

1212
private
13-
13+
1414
def build_count_subquery(relation, column_name, distinct)
15-
klass.with_connection do |connection|
15+
self.model.with_connection do |connection|
1616
relation = relation.unscope(:order) if connection.sqlserver?
1717
super(relation, column_name, distinct)
1818
end

0 commit comments

Comments
 (0)