render_turbo_stream 2.1.1 → 2.1.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92144d161ab6a0eee72442b7b848a140b9f439cbda17a3e41ad4a28aa5f0a8cb
|
4
|
+
data.tar.gz: 3b290864b96789968ab8ad704b1127cb37ab6c00985c11c1cd87c28a2cb87695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea284231a3dd9343643a868bde136c954e32d0347354c5127f83b64e297e81309372214490df90580f32143c9a0f1422fe8f6abb2e2e1b9f7096726fb1454896
|
7
|
+
data.tar.gz: c8719357d38e4ced162e9bc2b94401ee3e7096f6097e1402b9ac9670c3b124326da0a9ac858b9ff5a434458efd010fb50d3b8104a6da6c8902cf0697cb748973
|
@@ -45,6 +45,10 @@ module RenderTurboStream
|
|
45
45
|
)
|
46
46
|
end
|
47
47
|
|
48
|
+
def partial_to_all(action, partial, id, locals: nil)
|
49
|
+
partial_to_channel(action, 'all', partial, id, locals: locals)
|
50
|
+
end
|
51
|
+
|
48
52
|
def partial_to_me(partial, id, action: :replace, locals: nil)
|
49
53
|
begin
|
50
54
|
u_id = helpers.current_user&.id
|
@@ -6,6 +6,7 @@ module RenderTurboStream
|
|
6
6
|
turbo_stream_from "authenticated-user-#{current_user.id}"
|
7
7
|
else
|
8
8
|
Rails.logger.debug(" • SKIP CABLE_FROM_ME because not authenticated")
|
9
|
+
nil
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
@@ -15,11 +16,12 @@ module RenderTurboStream
|
|
15
16
|
turbo_stream_from "all-authenticated-users"
|
16
17
|
else
|
17
18
|
Rails.logger.debug(" • SKIP CABLE_FROM_ALL_AUTHENTICATED_USERS because not authenticated")
|
19
|
+
nil
|
18
20
|
end
|
19
21
|
end
|
20
22
|
|
21
23
|
def cable_from_all
|
22
|
-
|
24
|
+
turbo_stream_from "all"
|
23
25
|
end
|
24
26
|
|
25
27
|
def local_model(object)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_turbo_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|