render_turbo_stream 4.1.5 → 4.1.6
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: d41d763714ed2d599837c9cd3723d2f618f9ee6df7a095c8a06d0f66291cae7f
|
4
|
+
data.tar.gz: fac83287dbba160bfbe7a18b505810eab430c0fef43b32472494ee3e3291acd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c6943379cb3411f3d2a79b3ab11559876c6ff25db04f41c5f6b6eeb574f6aa8152398584cc9fc00eb00f107a205bb1852e5ae1141ee48707076ad627c963f39
|
7
|
+
data.tar.gz: 6c160c3026eac74b5fa1be6288409554a95cad8548b75e615015d99883774e87c3c61d8087588fb5d4e9840b2acd141b90a03e82cf21440ccaf0b221d8b0238e
|
@@ -157,11 +157,11 @@ module RenderTurboStream
|
|
157
157
|
unless object
|
158
158
|
object = eval("@#{controller_name.classify.underscore}")
|
159
159
|
end
|
160
|
-
|
161
|
-
libs = RenderTurboStream::ControllerLibs.new(save_action)
|
162
|
-
if !object
|
160
|
+
unless object
|
163
161
|
raise "Could not fetch a model name by «eval(\"\@\#{controller_name.classify.underscore}\")». You must provide the argument :object."
|
164
162
|
end
|
163
|
+
|
164
|
+
libs = RenderTurboStream::ControllerLibs.new(save_action)
|
165
165
|
model_name = object.model_name.human
|
166
166
|
|
167
167
|
turbo_actions = libs.generate_flash(
|
@@ -42,6 +42,9 @@ module RenderTurboStream
|
|
42
42
|
unless object
|
43
43
|
object = eval("@#{controller_name.classify.underscore}")
|
44
44
|
end
|
45
|
+
unless object
|
46
|
+
raise "Could not fetch a model name by «eval(\"\@\#{controller_name.classify.underscore}\")». You must provide the argument :object."
|
47
|
+
end
|
45
48
|
|
46
49
|
libs = RenderTurboStream::ControllerLibs.new(save_action)
|
47
50
|
model_name = object.model_name.human
|