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: 25d63c5bb45cb0783c6a9aa3c3ac8a4461d6da84d23d8e136c7b6d3183173976
4
- data.tar.gz: 46e70462fdefc9d0eb5147dbfc411c0d1901da40de7c32207566ce5a4a3dd289
3
+ metadata.gz: d41d763714ed2d599837c9cd3723d2f618f9ee6df7a095c8a06d0f66291cae7f
4
+ data.tar.gz: fac83287dbba160bfbe7a18b505810eab430c0fef43b32472494ee3e3291acd2
5
5
  SHA512:
6
- metadata.gz: e56656889feebe38616c4ebce6b6f52fbe64dee5c28a8522007ecb90facb86ec1061ad670010c656f4d911c36313aa89e49e7626f706ec770f168a3b40d390dd
7
- data.tar.gz: cc0f7bbbc2fa948978386def6d2989021d7d57ad7216ac2f5aace50aaca37e22be8d8c99e05fae5c69b0c7428371ddf4232313bda10266e7e20ad72590d43619
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
@@ -29,7 +29,5 @@ module RenderTurboStream
29
29
  end
30
30
  end
31
31
 
32
-
33
-
34
32
  end
35
33
  end
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "4.1.4"
2
+ VERSION = "4.1.6"
3
3
  end
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
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 unified workflow for TurboStream and TurboStreams::Channel.
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! A demo project with all this
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