plutonium 0.24.6 → 0.24.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9806660f2996abd33f6a5bfd149c489f6baa696500c1ff15d4a052d567c956
|
4
|
+
data.tar.gz: 5c5ce03afc23a152e9c1ff395bffff240a6ce5eb7b7be3e2b2ee49f080c20a68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fcb9db510846fcb3208dc9c12c3672fa6cb32dd8df9a8db3a828eb4c733eb93bea5c2807bd798791b8abc7e8aad5fb79011dfd5ff86e39294482fccfa59a3ab
|
7
|
+
data.tar.gz: 68d70cc364a4963f8a1409bc642562dccac57393161ee28d3eb6b54c5e2c7c2487c6d19ab4f2b626e5be5defa33a083c440fcb261b982b0f448bd80b4b30810b
|
@@ -52,7 +52,7 @@ module Plutonium
|
|
52
52
|
outcome.to_response.process(self) do |value|
|
53
53
|
respond_to do |format|
|
54
54
|
if outcome.success?
|
55
|
-
return_url = redirect_url_after_action_on(
|
55
|
+
return_url = redirect_url_after_action_on(resource_record!)
|
56
56
|
|
57
57
|
format.any { redirect_to return_url, status: :see_other }
|
58
58
|
|
@@ -23,8 +23,14 @@ module Plutonium
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def render_link
|
26
|
+
uri = URI.parse(@url)
|
27
|
+
params = Rack::Utils.parse_nested_query(uri.query)
|
28
|
+
params["return_to"] = request.original_url
|
29
|
+
uri.query = params.to_query
|
30
|
+
uri.to_s
|
31
|
+
|
26
32
|
link_to(
|
27
|
-
|
33
|
+
uri.to_s,
|
28
34
|
class: button_classes,
|
29
35
|
data: {turbo_frame: @action.turbo_frame}
|
30
36
|
) do
|
@@ -61,7 +61,7 @@ module Plutonium
|
|
61
61
|
private
|
62
62
|
|
63
63
|
def render_actions
|
64
|
-
input name:
|
64
|
+
input name: "return_to", value: request.params[:return_to], type: :hidden, hidden: true
|
65
65
|
|
66
66
|
actions_wrapper {
|
67
67
|
render submit_button
|
data/lib/plutonium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|