render_turbo_stream 4.1.4 → 4.1.5

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: 25d63c5bb45cb0783c6a9aa3c3ac8a4461d6da84d23d8e136c7b6d3183173976
4
- data.tar.gz: 46e70462fdefc9d0eb5147dbfc411c0d1901da40de7c32207566ce5a4a3dd289
3
+ metadata.gz: 6a667bdf8e453b073d1a728867311b094c6cd4e2b0130e0bf315111b06cd1fd7
4
+ data.tar.gz: c38fc937c8accd644b2990806e16b6065641544954cf9685831e7da418a80eba
5
5
  SHA512:
6
- metadata.gz: e56656889feebe38616c4ebce6b6f52fbe64dee5c28a8522007ecb90facb86ec1061ad670010c656f4d911c36313aa89e49e7626f706ec770f168a3b40d390dd
7
- data.tar.gz: cc0f7bbbc2fa948978386def6d2989021d7d57ad7216ac2f5aace50aaca37e22be8d8c99e05fae5c69b0c7428371ddf4232313bda10266e7e20ad72590d43619
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.4"
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.4
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.
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