active_admin_paranoia 1.0.2 → 1.0.3
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 +2 -2
- data/lib/active_admin_paranoia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ddd78aadc071c7c37f88c1c8e175a69b026063d
|
4
|
+
data.tar.gz: 527fc3e612ac6a8b1ee8ada7945052e228917931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db36375af5ce22b40c8eea7a315cb0c926e6eb249252f8f5408cb9b6cea1a9334d960aa0d9d646bbd7f622036b46e6f3ab78791ad749a10affdaa93967638f4b
|
7
|
+
data.tar.gz: 19ddcf882f57458b12bb9d78c71bdac99a03e3593a1a78b592bb64c119c0e378ee46d9166dea768b1cf8e2f7bed5c7aee57cfcb76595ace6f71b749e3c93b7b1
|
@@ -25,8 +25,8 @@ module ActiveAdminParanoia
|
|
25
25
|
redirect_to :back, notice: I18n.t('active_admin_paranoia.batch_actions.succesfully_restored', count: ids.count, model: resource_class.to_s.camelize.constantize.model_name, plural_model: resource_class.to_s.downcase.pluralize)
|
26
26
|
end
|
27
27
|
|
28
|
-
scope(I18n.t('active_admin_paranoia.non_archived'), default: true) { |scope| scope.
|
29
|
-
scope(I18n.t('active_admin_paranoia.archived')) { |scope| scope.
|
28
|
+
scope(I18n.t('active_admin_paranoia.non_archived'), default: true) { |scope| scope.where(resource_class.to_s.camelize.constantize.paranoia_column => resource_class.to_s.camelize.constantize.paranoia_sentinel_value) }
|
29
|
+
scope(I18n.t('active_admin_paranoia.archived')) { |scope| scope.where.not(resource_class.to_s.camelize.constantize.paranoia_column => resource_class.to_s.camelize.constantize.paranoia_sentinel_value) }
|
30
30
|
end
|
31
31
|
end
|
32
32
|
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.0.3
|
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: 2015-02-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|