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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2994687d6e87ebaf8843c98b0e0893d1447c5f1a
4
- data.tar.gz: 66e8eb56e41ac53bda190b96b8a0322609d7b4fa
3
+ metadata.gz: 51bde03892d147130aee0fa2f7abd7cc30610ce4
4
+ data.tar.gz: 4c589c04cfb2b82cd9525be1c1e1c9d567dd5110
5
5
  SHA512:
6
- metadata.gz: 7a27d48f411629fd762e745d8fdaabd967fca036d62b59ecf202c46350c7740a4ec70ffa9f0484f44ec96010f9a83e6c3c08a9683b0742fc6935ec20be7d0aaf
7
- data.tar.gz: 2d63627cb2d70ee8bf3c66d488cbd4447f1c10141d78a264b0562b79412e55a73d9dd373105c38e3947c71b729c37efdf1cb6c2e38a60c54510f5e2407d6661c
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
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminParanoia
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
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.4
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-02-25 00:00:00.000000000 Z
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.2.2
83
+ rubygems_version: 2.4.7
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Paranoia extension for ActiveAdmin