render_turbo_stream 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render_turbo_stream/render_turbo_stream.rb +1 -1
- data/lib/render_turbo_stream/version.rb +1 -1
- data/views/_turbo_stream_partials.html.erb +7 -0
- data/views/_turbo_stream_redirect.html.erb +1 -0
- data/views/turbo_stream_partials.html.erb +0 -0
- data/views/turbo_stream_partials.turbo_stream.html.erb +1 -0
- data/views/turbo_stream_redirect.html.erb +0 -0
- data/views/turbo_stream_redirect.turbo_stream.html.erb +4 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c8ed098887683be74c2e17d188210a84d19f8bd3bd78d45f50e5489a331a876
|
4
|
+
data.tar.gz: 92dd603056339f873688f36ea49b7a993bd1515fbb9b964095949d311f97295d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4661e2cc897b6517739755c250065c9f35cdd822acd77f63e9495a19783e0e26b51353465ba73d7aea93921249c363f61e412a4bb1231f1ab3435aa6a6cd7df9
|
7
|
+
data.tar.gz: 6a367a221994db3bb656ab7a9e6d4dc27763d9482c7843d1cbb22e81762060366c387c66ae65fb7c7cd040479c6ab47fe83a8d4539fb3960bae34d8014a80c78
|
@@ -108,7 +108,7 @@ module RenderTurboStream
|
|
108
108
|
#== render
|
109
109
|
|
110
110
|
views_folder = Pathname.new(Bundler.rubygems.find_name('render_turbo_stream').first.full_gem_path).join('views')
|
111
|
-
suffix = (request.format.to_sym == :html ? '.html.erb' : '.turbo_stream.erb')
|
111
|
+
suffix = (request.format.to_sym == :html ? '.html.erb' : '.turbo_stream.html.erb')
|
112
112
|
|
113
113
|
if save_action && redirect_on_success_to
|
114
114
|
flash[:notice] = messages.to_a + add_flash_notices.to_a
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<% replace_frames.each do |f| %>
|
2
|
+
<%= turbo_stream.replace f[:id] do %>
|
3
|
+
<% Rails.logger.debug(" RENDER TURBO STREAM ERROR => REPLACE ID: #{f[:id]}") %>
|
4
|
+
<%= render f[:partial], locals: f[:locals] %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
<%= turbo_stream.prepend @render_turbo_flash_id, partial: @render_turbo_flash_partial %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= turbo_stream.redirect_to(url) %>
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'global/turbo_stream_error', replace_frames: replace_frames %>
|
File without changes
|
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: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian
|
@@ -38,6 +38,12 @@ files:
|
|
38
38
|
- lib/render_turbo_stream/render_turbo_stream.rb
|
39
39
|
- lib/render_turbo_stream/version.rb
|
40
40
|
- lib/tasks/render_turbo_stream_tasks.rake
|
41
|
+
- views/_turbo_stream_partials.html.erb
|
42
|
+
- views/_turbo_stream_redirect.html.erb
|
43
|
+
- views/turbo_stream_partials.html.erb
|
44
|
+
- views/turbo_stream_partials.turbo_stream.html.erb
|
45
|
+
- views/turbo_stream_redirect.html.erb
|
46
|
+
- views/turbo_stream_redirect.turbo_stream.html.erb
|
41
47
|
homepage: https://gitlab.com/sedl/render-turbo-stream
|
42
48
|
licenses:
|
43
49
|
- MIT
|