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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7da0c338356e41e8dee307054e980e678bacc55e
4
- data.tar.gz: 18ce56c459303ba6b4d8f380b60fca8cb9243db5
3
+ metadata.gz: 4ddd78aadc071c7c37f88c1c8e175a69b026063d
4
+ data.tar.gz: 527fc3e612ac6a8b1ee8ada7945052e228917931
5
5
  SHA512:
6
- metadata.gz: ffb12e2efabf41518fdfe1cb41613f14bf36a8c7f1edeb0649d3aeef69d07944fcc7d88e4706df1d80b5d16edac6b6807df0de71031f6b53e3554085b16aedfd
7
- data.tar.gz: 0a3e80bc40c788f4fa045405faeaae221125181fb5c30c5f20df43f747ae5d15fb64df481308a0c285967b11606076540a06570b912bea9890188094363390a7
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.unscoped.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.unscoped.where.not(resource_class.to_s.camelize.constantize.paranoia_column => resource_class.to_s.camelize.constantize.paranoia_sentinel_value) }
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
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminParanoia
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
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.2
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-24 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails