render_turbo_stream 0.1.37 → 0.1.38
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: cc560017c111220d13b4d93d5b75a2dd6861ddb47279dfa274c198a139e0f570
|
4
|
+
data.tar.gz: 11412706a617e448b463d5f1c8ccfed8e78478ff326d76941aa3743e40c80310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45b9be258303328b2271fb401a2553725f80626160fd9b3f0dbefbf9475d342cd2e1192406544b8d2a8bce3b05c693b085edeef5d1e936b76c55b26a0df50a3
|
7
|
+
data.tar.gz: 444fb5821a42d2beee1860413da811b1f70b9cee8573e93694fba3a0351860a93c2015985637a78e695f9d73cd66e6804d13c729493e47b5ba8d1efe2726cd6d
|
@@ -89,17 +89,18 @@ module RenderTurboStream
|
|
89
89
|
# log as helper for the developer to see which flash is set and which partials are rendered to wich ids
|
90
90
|
def partials_log
|
91
91
|
r = []
|
92
|
-
if flash[:alert].present?
|
93
|
-
r.push("flash[:alert]: «#{flash[:alert]}»")
|
94
|
-
end
|
95
|
-
if flash[:notice].present?
|
96
|
-
r.push("flash[:notice]: «#{flash[:notice]}»")
|
97
|
-
end
|
98
92
|
if response.status == 302
|
99
93
|
r.push("redirect to #{turbo_redirect_to}")
|
100
94
|
else
|
101
95
|
partials_attributes.map do |a|
|
102
|
-
str = [
|
96
|
+
str = [
|
97
|
+
a['action'],
|
98
|
+
'id',
|
99
|
+
"«#{a['id']}»",
|
100
|
+
'by partial',
|
101
|
+
"«#{a['partial']}»",
|
102
|
+
(a['locals'].present? ? "locals: «#{a['locals']}»" : nil)
|
103
|
+
].compact.join(' ')
|
103
104
|
r.push(str)
|
104
105
|
end
|
105
106
|
end
|