slash_admin 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/slash_admin/models_controller.rb +4 -4
- data/lib/slash_admin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88010a73a59d851d79e9ec5a1642fa6f6a8df7beb1ef864a7e0d7017f7ed4e64
|
4
|
+
data.tar.gz: 14d9b2012626a34b1be33a0a646524c317d7304543776af7cfa5b772d6d37cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96c9018cc4f83b7c718fe96fc04675efeac895fd5dbd9703334ecfc664e81d4563eb190b1fd7d8a5e7dfca6b1e3bb76b03d66d5c51aab58a0aa31b23fa62f3f2
|
7
|
+
data.tar.gz: ab0ecfd5f77bee251f34a93aed0eb709310b705659457c330c485dd001a8db5dad615ec24d1e40ad97b2acee071f037df7e68de091c76107679200a1f49f5938
|
@@ -222,7 +222,7 @@ module SlashAdmin
|
|
222
222
|
|
223
223
|
flash[:success] = t("slash_admin.controller.nestable.success")
|
224
224
|
|
225
|
-
redirect_to(main_app.polymorphic_url([
|
225
|
+
redirect_to(main_app.polymorphic_url([:slash_admin, @model_class])) && return if params.key?(:submit_redirect)
|
226
226
|
redirect_to main_app.polymorphic_url([:nestable, :slash_admin, @model_class])
|
227
227
|
end
|
228
228
|
end
|
@@ -350,9 +350,9 @@ module SlashAdmin
|
|
350
350
|
end
|
351
351
|
|
352
352
|
def handle_redirect_after_submit
|
353
|
-
path = main_app.edit_polymorphic_url([
|
354
|
-
path = main_app.polymorphic_url([
|
355
|
-
path = main_app.new_polymorphic_url([
|
353
|
+
path = main_app.edit_polymorphic_url([:slash_admin, @model])
|
354
|
+
path = main_app.polymorphic_url([:slash_admin, @model_class]) if params.key?(:submit_redirect)
|
355
|
+
path = main_app.new_polymorphic_url([:slash_admin, @model_class]) if params.key?(:submit_add)
|
356
356
|
|
357
357
|
path
|
358
358
|
end
|
data/lib/slash_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slash_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KOVACS Nicolas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|