render_turbo_stream 1.4.11 → 1.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render_turbo_stream/version.rb +1 -1
- data/lib/render_turbo_stream.rb +3 -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: 344d9c5276c13acd3cbde921821be8d224befaca25d1492af766c45cb80f7993
|
4
|
+
data.tar.gz: b7a86cd99b8d5808590c5ed14032f8275c3ae284e90e9682c5b4c2b8dcec332e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee892284af2df779af7051f5e8c3f8132595657997429b1ba0d6a8585460a5ed087620c1c5182a786fe5a96c56f6968fc9c192db826f95a00b76a2d6d3ca14a7
|
7
|
+
data.tar.gz: b74f6487ea7f28a854b98d088e547b80ab67cfb2bbfd1bb62dab24d9d36f2f6b78a42b7e1e78f95ff8c91930632a87fd37a3f3a9d8275b2a418b8a650931435e
|
data/lib/render_turbo_stream.rb
CHANGED
@@ -159,7 +159,9 @@ module RenderTurboStream
|
|
159
159
|
|
160
160
|
ary = []
|
161
161
|
array.each do |pr|
|
162
|
-
if pr.
|
162
|
+
if !pr.present?
|
163
|
+
Rails.logger.warn " WARNING render_turbo_stream: Empty element inside attributes: «#{array}»"
|
164
|
+
elsif pr.is_a?(Hash)
|
163
165
|
props = pr.symbolize_keys
|
164
166
|
raise "missing attribute :id in #{props}" if !props[:id].present?
|
165
167
|
part = (props[:partial].present? ? props[:partial] : props[:id]).gsub('-', '_')
|