pg_rails 7.6.14 → 7.6.15

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
  SHA256:
3
- metadata.gz: aa1826517f886fd0a5fd3ea458411cd600181118fd4494563f6fbe78e32d65c9
4
- data.tar.gz: d0d832af6e4c1912a3edf1f3a65fefcb36541773e65d681a1697e75d96ad85a7
3
+ metadata.gz: 3db6eee59bbd35a8a834cb9d09b7a6a1d04fe49026661b4dba7d66dd02580484
4
+ data.tar.gz: e4aca63a466bba3b75d01db82a4146b79d7f25de228afcede2568c072edd3808
5
5
  SHA512:
6
- metadata.gz: 672e3fe48b7a305c61ab0e2eb5cbf218dc0e56fcfbd23a0faec4c5dc655a08b01170a98ce280781b14e1a3547538afc69d48d95756090348c4544dd69835364c
7
- data.tar.gz: a648588c54f6e1f72265c511164b2109120f8813423f9c9d9d428f87441e90aaf8835953e906ab041a20378d744ef9b7651d7dde30087cd630c87a45561f3d18
6
+ metadata.gz: a8b824b4d410a79f47b13696748dcbcfc051a762a6b9e2a0a400f33d58f1ed6db699e4bbcb6c77c1920f5f5601c0e81caa4c161487e6dc274388ba154af5a22c
7
+ data.tar.gz: a7f81b4a9bdc9e86ee4595b5d64af8f11992f09e089c14f0e9468a41cd982b6f5106b382c05051986689504bc8156ab46f7cee9ce5397972f74ed14c5a83d39c
@@ -48,10 +48,12 @@ document.addEventListener('pg:record-created', (ev) => {
48
48
  })
49
49
 
50
50
  document.addEventListener('pg:record-updated', (ev) => {
51
- Turbo.visit(window.location)
52
- setTimeout(() => {
53
- Turbo.cache.clear()
54
- }, 1000)
51
+ if (!ev.data.dataset.inline) {
52
+ Turbo.visit(window.location)
53
+ setTimeout(() => {
54
+ Turbo.cache.clear()
55
+ }, 1000)
56
+ }
55
57
  })
56
58
 
57
59
  document.addEventListener('pg:record-destroyed', (ev) => {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.6.14'
4
+ VERSION = '7.6.15'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.14
4
+ version: 7.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso