arel-extensions 8.0.0 → 8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record/query_methods.rb +1 -1
- data/lib/arel/extensions/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 864929650ef61e3f9365767b052b403ec511d8102654e2890e9fd6b97492352a
|
4
|
+
data.tar.gz: e35c7b6b0a262623b3368f1517363d84c71fd7b91cc0327cc730b41d3f50dbe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db5423c6f8ee72c58d6a351a6ac4c8e633c2358762aa797698cc6c3f7710acf520a08c8a1fff5645ab8dfe0f5cadb13edbb115e76cb9c7d394fde8ed0d987fa
|
7
|
+
data.tar.gz: 30230816dbd511c6631e63908a242792d88f793fc45e5678465f2f9b6f0ba670d563563e0402590e5805fcf5a5cd04d8ed0057a4f91d75df934cbc3a79a91398
|
@@ -24,7 +24,7 @@ module ActiveRecord::QueryMethods
|
|
24
24
|
end
|
25
25
|
alias uniq_on! distinct_on!
|
26
26
|
|
27
|
-
if ActiveRecord >= "7.2"
|
27
|
+
if ActiveRecord.version >= "7.2"
|
28
28
|
def build_arel_with_distinct_on(connection, aliases = nil)
|
29
29
|
arel = build_arel_without_distinct_on(connection, aliases)
|
30
30
|
arel.distinct_on(self.distinct_on_values) if !self.distinct_on_values.empty?
|