render_turbo_stream 4.1.3 → 4.1.5

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: f84574351b4a3809ae143420bc6e6a144fa548d791a69be6eebd391ca7bdbe52
4
- data.tar.gz: 264845c10d4ad2e172356d686c6527cd6064d705453a20285b62b9b132024d80
3
+ metadata.gz: 6a667bdf8e453b073d1a728867311b094c6cd4e2b0130e0bf315111b06cd1fd7
4
+ data.tar.gz: c38fc937c8accd644b2990806e16b6065641544954cf9685831e7da418a80eba
5
5
  SHA512:
6
- metadata.gz: 1c981761deae86109deeaac4fa9b11d1d183ff613a848ffd887e721f35733778c5663fd9dd250d808c0c073de0a7f2021ef9d2a65b8fbef42c7a7fc64dba39cb
7
- data.tar.gz: 70964edcb775428b89ee4e5f49038a926c65e69f49dd08dba913197fa92c64f5bb4734536eef4cd6139a4f1828382326eab3f0918b793e195d6886d47a368e1f
6
+ metadata.gz: 79220607a4ae09be4cab396d6ca86a97f2ed1177bbf3abeca162ecbfa770b4628691e18b00f26f7db160d5a0cc8f60615231c1f109aad5945e83511f8d11273e
7
+ data.tar.gz: a3d4c30bb7f1f3fb30fe527bc20da9703207c893db2378ca8aca452d037eb9f5a2f284c233c8ebb0698660bff0eb72abd8954e6440e8ec293574c87fef2da5cc
@@ -159,6 +159,9 @@ module RenderTurboStream
159
159
  end
160
160
 
161
161
  libs = RenderTurboStream::ControllerLibs.new(save_action)
162
+ if !object
163
+ raise "Could not fetch a model name by «eval(\"\@\#{controller_name.classify.underscore}\")». You must provide the argument :object."
164
+ end
162
165
  model_name = object.model_name.human
163
166
 
164
167
  turbo_actions = libs.generate_flash(
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "4.1.3"
2
+ VERSION = "4.1.5"
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.3
4
+ version: 4.1.5
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.
28
- To avoid a heavy view and logic mix inside *.turbo_stream.* templates, partials
29
- and templates can be rendered directly from the controller. There is no need to
30
- write *.turbo_stream.* templates anymore. Javascript actions can also be executed
31
- 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
27
+ description: 'A set of helpers that allow a UNIFIED WORKFLOW for TurboStream and TurboStreams::Channel.
28
+ To avoid a heavy mix of view and logic, partials and templates can be rendered directly
29
+ from the controller. There is no need to write *.turbo_stream.* templates anymore.
30
+ Logic can stay on the Ruby side, in the controller. Javascript actions can also
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
33
33
  built in, along with system and request tests, is linked in the README.'
34
34
  email:
35
35
  - christian@sedlmair.ch