render_turbo_stream 4.1.4 → 4.1.6
Sign up to get free protection for your applications and to get access to all the features.
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,6 +157,9 @@ module RenderTurboStream
|
|
157
157
|
unless object
|
158
158
|
object = eval("@#{controller_name.classify.underscore}")
|
159
159
|
end
|
160
|
+
unless object
|
161
|
+
raise "Could not fetch a model name by «eval(\"\@\#{controller_name.classify.underscore}\")». You must provide the argument :object."
|
162
|
+
end
|
160
163
|
|
161
164
|
libs = RenderTurboStream::ControllerLibs.new(save_action)
|
162
165
|
model_name = object.model_name.human
|
@@ -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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_turbo_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian
|
@@ -24,12 +24,12 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.0.3
|
27
|
-
description: 'A set of helpers that allow a
|
27
|
+
description: 'A set of helpers that allow a UNIFIED WORKFLOW for TurboStream and TurboStreams::Channel.
|
28
28
|
To avoid a heavy mix of view and logic, partials and templates can be rendered directly
|
29
29
|
from the controller. There is no need to write *.turbo_stream.* templates anymore.
|
30
30
|
Logic can stay on the Ruby side, in the controller. Javascript actions can also
|
31
31
|
be executed directly from the controller. TESTING: To reduce the amount of hard-to-maintain
|
32
|
-
system tests, this gem allows detailed request tests
|
32
|
+
system tests, this gem allows detailed request tests. A DEMO PROJECT with all this
|
33
33
|
built in, along with system and request tests, is linked in the README.'
|
34
34
|
email:
|
35
35
|
- christian@sedlmair.ch
|