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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eab3ae290969bd0aafca3d62534ad33addd33964b3d0a86252a3e1b572899a61
4
- data.tar.gz: 11dc8b152fe0ae371a9455368d093053830b5022aca93e81e219241994198ad1
3
+ metadata.gz: 88010a73a59d851d79e9ec5a1642fa6f6a8df7beb1ef864a7e0d7017f7ed4e64
4
+ data.tar.gz: 14d9b2012626a34b1be33a0a646524c317d7304543776af7cfa5b772d6d37cee
5
5
  SHA512:
6
- metadata.gz: c1270c0a3a732ccd0e5700defcfc5bb1be81987014e3a3b8329bbb8ce2d5220b9eb1403d195851d246961b31d7cb21e98b84964b6fdbbf35986a33203b585158
7
- data.tar.gz: 9cf8b935b5d76c57eff1ccebbce9623748efff7cc703663c1e47dbcc1e623792222bbc7c775133f5a56788bea8e0d18718e588dcde153b40e72b07bc7338b73e
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(["slash_admin", @model_class])) && return if params.key?(:submit_redirect)
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(["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)
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
@@ -1,3 +1,3 @@
1
1
  module SlashAdmin
2
- VERSION = "1.5.8"
2
+ VERSION = "1.5.9"
3
3
  end
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.8
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-04-22 00:00:00.000000000 Z
11
+ date: 2021-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails