active_admin_paranoia 1.0.12 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_admin_paranoia/dsl.rb +3 -3
- data/lib/active_admin_paranoia/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: 055f9b72d90db702ba38dd087081760cda800b33a9879ae1df282c7557176913
|
4
|
+
data.tar.gz: 129ed49e2a62ca78b0292682cae42bad0560f333207cac8e4c9042eb2c325f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69bb0814bad755e5550fff43ab190ceb939058a460c9eed5d19b32082a73ed0e0d62fc47a29567e41c069538deabb99baa4b8fb2660b14fa9de91d01cdc57ae8
|
7
|
+
data.tar.gz: 7ec37543fb199d9afb1cc3fb444918cef7af4c2da1f97b8a84870759a50d4441dcebea59da6b1ad4eb0b2c3a52e36833187ab9760c85be093337de9d77d63294
|
@@ -9,7 +9,7 @@ module ActiveAdminParanoia
|
|
9
9
|
options = { notice: I18n.t('active_admin_paranoia.batch_actions.succesfully_archived', count: ids.count, model: resource_class.model_name, plural_model: resource_class.to_s.downcase.pluralize) }
|
10
10
|
# For more info, see here: https://github.com/rails/rails/pull/22506
|
11
11
|
if Rails::VERSION::MAJOR >= 5
|
12
|
-
controller.redirect_back({ fallback_location: ActiveAdmin.application.root_to }.merge(
|
12
|
+
controller.redirect_back(**{ fallback_location: ActiveAdmin.application.root_to }.merge(options))
|
13
13
|
else
|
14
14
|
controller.redirect_to :back, options
|
15
15
|
end
|
@@ -40,7 +40,7 @@ module ActiveAdminParanoia
|
|
40
40
|
options = { notice: I18n.t('active_admin_paranoia.batch_actions.succesfully_restored', count: ids.count, model: resource_class.model_name, plural_model: resource_class.to_s.downcase.pluralize) }
|
41
41
|
# For more info, see here: https://github.com/rails/rails/pull/22506
|
42
42
|
if Rails::VERSION::MAJOR >= 5
|
43
|
-
redirect_back({ fallback_location: ActiveAdmin.application.root_to }.merge(
|
43
|
+
redirect_back(**{ fallback_location: ActiveAdmin.application.root_to }.merge(options))
|
44
44
|
else
|
45
45
|
redirect_to :back, options
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module ActiveAdminParanoia
|
|
63
63
|
options = { notice: I18n.t('active_admin_paranoia.batch_actions.succesfully_restored', count: 1, model: resource_class.model_name, plural_model: resource_class.to_s.downcase.pluralize) }
|
64
64
|
# For more info, see here: https://github.com/rails/rails/pull/22506
|
65
65
|
if Rails::VERSION::MAJOR >= 5
|
66
|
-
redirect_back({ fallback_location: ActiveAdmin.application.root_to }.merge(
|
66
|
+
redirect_back(**{ fallback_location: ActiveAdmin.application.root_to }.merge(options))
|
67
67
|
else
|
68
68
|
redirect_to :back, options
|
69
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_paranoia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miah Raihan Mahmud Arman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|