active_admin_paranoia 1.0.4 → 1.0.5
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 +1 -1
- data/lib/active_admin_paranoia/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51bde03892d147130aee0fa2f7abd7cc30610ce4
|
4
|
+
data.tar.gz: 4c589c04cfb2b82cd9525be1c1e1c9d567dd5110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a53a23fa7d0484ccbba34ba9601ac465d6f0d409699413028efaf1f1c95159954ac642c25675ef3309e99a2a8039a685a637840a5b7a5404dac8c8d49a9866e
|
7
|
+
data.tar.gz: a4a61f589697f3147849fdf09b814ae8a0060457cad1df947a7f17ae1a4c5b0444b7bd1858c749f9d4cdce44c1d7a5337fd1841807ec114864802150f6359484
|
@@ -26,7 +26,7 @@ module ActiveAdminParanoia
|
|
26
26
|
end
|
27
27
|
|
28
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) }
|
29
|
+
scope(I18n.t('active_admin_paranoia.archived')) { |scope| scope.unscope(:where => resource_class.to_s.camelize.constantize.paranoia_column).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.5
|
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-
|
11
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.4.7
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Paranoia extension for ActiveAdmin
|