active_admin_paranoia 1.0.6 → 1.0.7
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 +4 -4
- data/README.md +1 -1
- data/active_admin_paranoia.gemspec +2 -2
- data/lib/active_admin_paranoia/dsl.rb +1 -9
- data/lib/active_admin_paranoia/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f72b20c124eb8b9c87d4e1382670854229b40bc3
|
|
4
|
+
data.tar.gz: fcac6f565f6a3ac661da2d860b1f96cd744cba3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa366321166532af63360a60d68e5cfbe0f89923c915a3703da55eba4e8e911fc08e3747e8391cdd4998ded5476334aed9ee0d30e17fd7ffbf42028731732f29
|
|
7
|
+
data.tar.gz: ef2c591df1d78ea220d16b156d0c7092b041beab53c8a01c842ac325a1c4d002f3856686c3ac246e853f485367769165fd70ba01a6bcbb826e4d6404429c7da9
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ This gem extends ActiveAdmin so that batch restore and batch archive actions wil
|
|
|
5
5
|
This gem assumes that you have already configured [paranoia](https://github.com/radar/paranoia) for you desire resource. Add this line to your application's Gemfile:
|
|
6
6
|
|
|
7
7
|
```ruby
|
|
8
|
-
gem "active_admin_paranoia" , '~> 1.0.
|
|
8
|
+
gem "active_admin_paranoia" , '~> 1.0.7'
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
|
|
|
16
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
17
17
|
gem.require_paths = %w(lib)
|
|
18
18
|
|
|
19
|
-
gem.add_dependency 'rails', '
|
|
20
|
-
gem.add_dependency 'paranoia', '
|
|
19
|
+
gem.add_dependency 'rails', '~> 4.0'
|
|
20
|
+
gem.add_dependency 'paranoia', '~> 1.0'
|
|
21
21
|
end
|
|
@@ -3,15 +3,7 @@ module ActiveAdminParanoia
|
|
|
3
3
|
def active_admin_paranoia
|
|
4
4
|
controller do
|
|
5
5
|
def find_resource
|
|
6
|
-
resource_class.to_s.camelize.constantize.
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def action_methods
|
|
10
|
-
if params[:scope] == 'archived'
|
|
11
|
-
%w(index batch_action)
|
|
12
|
-
else
|
|
13
|
-
super
|
|
14
|
-
end
|
|
6
|
+
resource_class.to_s.camelize.constantize.with_deleted.where(id: params[:id]).first!
|
|
15
7
|
end
|
|
16
8
|
end
|
|
17
9
|
|
metadata
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
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.7
|
|
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-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '4.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '4.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: paranoia
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '1.0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '1.0'
|
|
41
41
|
description: This gem extends ActiveAdmin so that batch restore and batch archive
|
|
@@ -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.4.
|
|
83
|
+
rubygems_version: 2.4.5.1
|
|
84
84
|
signing_key:
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: Paranoia extension for ActiveAdmin
|