view_component_reflex 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/view_component_reflex.rb +3 -1
- data/lib/view_component_reflex/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: 496ca8914c7e26b3cf8d6e8023e3919f554354e81c6b67900290c1872fee518a
|
4
|
+
data.tar.gz: 322663d7019f05aa3065b6cc619c37c0f26e94a1e39bb6a42731fa46e48bc61d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4aff8020d47d29c6e1c4a44ff6819178ac5fd6767785009a8d91e87d856b170a452796e636da127a4c91ab7e07de64805826175d28b966d5002f8da0d275d45
|
7
|
+
data.tar.gz: 88f1b3feb877862866846f2d599f846308c5281d7e8feff60de4acbea3300613e4baebf84191cad43cf9ead7a7005efda74af874eea8e34dc15a7aa4887a5811
|
@@ -5,7 +5,7 @@ module ViewComponentReflex
|
|
5
5
|
# Your code goes here...
|
6
6
|
end
|
7
7
|
|
8
|
-
|
8
|
+
module StimulusReflexChannelExtension
|
9
9
|
def render_page_and_broadcast_morph(reflex, selectors, data = {})
|
10
10
|
html = render_page(reflex)
|
11
11
|
if reflex.respond_to? :stimulus_controller
|
@@ -14,3 +14,5 @@ class StimulusReflex::Channel < ActionCable::Channel::Base
|
|
14
14
|
broadcast_morphs selectors, data, html if html.present?
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
18
|
+
StimulusReflex::Channel.include StimulusReflexChannelExtension
|