render_turbo_stream 4.1.5 → 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: 6a667bdf8e453b073d1a728867311b094c6cd4e2b0130e0bf315111b06cd1fd7
4
- data.tar.gz: c38fc937c8accd644b2990806e16b6065641544954cf9685831e7da418a80eba
3
+ metadata.gz: d41d763714ed2d599837c9cd3723d2f618f9ee6df7a095c8a06d0f66291cae7f
4
+ data.tar.gz: fac83287dbba160bfbe7a18b505810eab430c0fef43b32472494ee3e3291acd2
5
5
  SHA512:
6
- metadata.gz: 79220607a4ae09be4cab396d6ca86a97f2ed1177bbf3abeca162ecbfa770b4628691e18b00f26f7db160d5a0cc8f60615231c1f109aad5945e83511f8d11273e
7
- data.tar.gz: a3d4c30bb7f1f3fb30fe527bc20da9703207c893db2378ca8aca452d037eb9f5a2f284c233c8ebb0698660bff0eb72abd8954e6440e8ec293574c87fef2da5cc
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
@@ -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.5"
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.5
4
+ version: 4.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian