recourse 7.11.2 → 7.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/recourse/broadcasting.rb +3 -2
- data/lib/recourse/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: 6e35c26234c6a52cdd8f81deeabc53416701caa7895494f8cc39e61169d469c2
|
|
4
|
+
data.tar.gz: 0b98268a91af045f9266a0bf3a6d68cd107b0a733111968675d1ef21704c78c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d00986e3679e75328b6f1e946fc60145b9a19a5faf2e6829523242b6a28800474d5bcd4de838ca4718f0e69b7d5bef618b37c71e9a0d94eda3de9e40a88ad6bc
|
|
7
|
+
data.tar.gz: 18826349bd88037bde697715eff5dd68f6e39d0ce0ff937118062cd6997721f75b4928bbf2174da3231ffd4356aab7e0c1913ecc614d05bea18e00514224e362
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## 7.11.3 - 2026-10-05
|
|
11
|
+
|
|
12
|
+
* [FIX] A host without Action Cable draws every index
|
|
13
|
+
|
|
14
|
+
Its tables simply do not redraw themselves when a row changes, rather than raising
|
|
15
|
+
`uninitialized constant ActionCable` from the subscription the index used to render.
|
|
16
|
+
|
|
10
17
|
## 7.11.2 - 2026-09-26
|
|
11
18
|
|
|
12
19
|
* [FIX] The count in a tab is delimited
|
|
@@ -17,10 +17,11 @@ module Recourse
|
|
|
17
17
|
# `broadcasts_refreshes` would send updates and destroys to per-record streams
|
|
18
18
|
# the index never hears. The ivar dies with the class on a dev reload, so the
|
|
19
19
|
# next request attaches to the fresh class again. Quiet without turbo-rails and
|
|
20
|
-
# Active Job, which is when the model has no `broadcasts_refreshes_to
|
|
20
|
+
# Active Job, which is when the model has no `broadcasts_refreshes_to`, and
|
|
21
|
+
# without Action Cable, which the index would subscribe through.
|
|
21
22
|
def recourse_broadcast
|
|
22
23
|
return if recourse_broadcasting? || !recourse_broadcasts?
|
|
23
|
-
return unless respond_to?
|
|
24
|
+
return unless respond_to?(:broadcasts_refreshes_to) && defined?(ActionCable)
|
|
24
25
|
|
|
25
26
|
@recourse_broadcasting = true
|
|
26
27
|
broadcasts_refreshes_to ->(record) { record.model_name.plural }
|
data/lib/recourse/version.rb
CHANGED