active_record-json_associations 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dcf607cd60319296ad2e04a4f96de08273b36bd
|
4
|
+
data.tar.gz: b35848ecd6ca8e044a390889a45aaba54192f600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d2c2ecf2271d0b37988c4653a8f1e6e81bee6ac9842c72a2e3c9b098c7d44ee58aaa64d010038ee5ab4b20d17e00ef250dd2ceade22baecd4bcc67f6322b61
|
7
|
+
data.tar.gz: ab14750a0370ac2532ecab1c7f13bb2b1d48db6a8731178247457b142b0807c902483e07da6850943053231c7b336931f3a4d034643a24f3be88cd8eb04a3ad0
|
@@ -34,7 +34,7 @@ module ActiveRecord
|
|
34
34
|
fragments += ["#{klass.primary_key} NOT IN (#{ids.map(&:to_s).join(",")})"] if ids.any?
|
35
35
|
fragments += ids.reverse.map { |id| "#{klass.primary_key}=#{id}" }
|
36
36
|
order_by_ids = fragments.join(", ")
|
37
|
-
scope.order!(order_by_ids)
|
37
|
+
scope.order!(Arel.sql(order_by_ids))
|
38
38
|
end
|
39
39
|
|
40
40
|
define_method many_equals do |collection|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-json_associations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|