jsonapi_compliable 0.11.28 → 0.11.29

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: 663bc3d881ef5e2d4e9df5049f7d1869adf17ca1
4
- data.tar.gz: d27c131078dc07d0c5acb4fe39ae6fcd45e4bdbb
3
+ metadata.gz: b35655eb99b786bb32bb69e4affa3ded9eb818c7
4
+ data.tar.gz: bb8d020c20f9e05dd2c879e4e0a2b47a3ace67c9
5
5
  SHA512:
6
- metadata.gz: 9632f59f934921ea26ef3d6759ffa21157cdc70d3ecd72995399c7c74c7ac5e13b28eba90d4724de81f81a49f73443440a8fcd1009946d85ba7e88b7fc9a726c
7
- data.tar.gz: 43b3f8ceac5b3fdb7dafac79539b3c511767738b8f495e226231b3d2eff755e4be5ce93f05b0ebdd1b68b948812061971fb87b8fefef73e03dc3d8fb479ee44f
6
+ metadata.gz: 9e7aabdf515d0767372fe5e5a8a68ee70a56196479a7ad6fab8adda3750ff38a67ce3d27a4217e0a6ab4bc8f8f392cb051cb7a2b4858a7ce8d77816ed7234436
7
+ data.tar.gz: 58137447b8674f20f6a25a61c4840ae176aef22377b96238b989adb2c5d561e69fb3c034e6777c5f5d8d58957cba2a7bfb77c03a0c3ea7c0f25e7e26bba8e1e1
@@ -95,7 +95,13 @@ module JsonapiCompliable
95
95
  end
96
96
  else
97
97
  namespace = Util::Sideload.namespace(@namespace, sideload.name)
98
- resolve_sideload = -> { sideload.resolve(results, @query, namespace) }
98
+ resolve_sideload = -> {
99
+ begin
100
+ sideload.resolve(results, @query, namespace)
101
+ ensure
102
+ ActiveRecord::Base.clear_active_connections!
103
+ end
104
+ }
99
105
  if concurrent
100
106
  promises << Concurrent::Promise.execute(&resolve_sideload)
101
107
  else
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.11.28"
2
+ VERSION = "0.11.29"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_compliable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.28
4
+ version: 0.11.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-08-31 00:00:00.000000000 Z
12
+ date: 2018-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jsonapi-serializable