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: b1d844089bbc9addaaa6680fff31aac70e44ecf8
4
- data.tar.gz: 53bacf65b6bbfe4a2e47cc300e88235733e7c20e
3
+ metadata.gz: 6dcf607cd60319296ad2e04a4f96de08273b36bd
4
+ data.tar.gz: b35848ecd6ca8e044a390889a45aaba54192f600
5
5
  SHA512:
6
- metadata.gz: 1e88b1f2079405a05c2b75490845f7c2dc2918110b3aebd977148c9b2f630a22bdec21ca276c75c3c2e20992a2e523b57961af054cc844caa8b27e57c1f7e723
7
- data.tar.gz: 98cc39387cfab3b919c44d44e0065d2f5b76fc2f24fc9d72053e6cadbd057f0524d12c744a4f77eac3d9ddcd0bb4153f533fd36682dd955085c8496d28a8a168
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|
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module JsonAssociations
3
- VERSION = "0.6.8"
3
+ VERSION = "0.6.9"
4
4
  end
5
5
  end
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.8
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: 2017-05-02 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord