active_admin_paranoia 1.0.12 → 1.1.0

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: 551cba3e0dd8ee2f2f1f3f33dff704266e1632c41a0a9be9a745ca94e7f3b9d6
4
- data.tar.gz: ff18025529636321a5463e47d8c6d9439422558a7c761153a151c599879406a0
3
+ metadata.gz: 055f9b72d90db702ba38dd087081760cda800b33a9879ae1df282c7557176913
4
+ data.tar.gz: 129ed49e2a62ca78b0292682cae42bad0560f333207cac8e4c9042eb2c325f80
5
5
  SHA512:
6
- metadata.gz: 1759ec05951777f9f933fb9bc976fb55c0a02fbd6e56827ca4d8af7153d337053f896c25c64164b32e3fbfd12224c57a095e58c93a8015a182f6f474527595c3
7
- data.tar.gz: 32259512a954d3171bdf9e04d4da9411dfceb92450bbe80539025538688e39d036f08c2f0dcbaed76dfce7f3e46985f45754043458200ab241f3ffe56194456e
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(**options))
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(**options))
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(**options))
66
+ redirect_back(**{ fallback_location: ActiveAdmin.application.root_to }.merge(options))
67
67
  else
68
68
  redirect_to :back, options
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminParanoia
2
- VERSION = '1.0.12'
2
+ VERSION = '1.1.0'
3
3
  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.12
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-22 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails