active_admin_versioning 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 866084e70be46ebf80c76fb77129c4ee091511b8
|
4
|
+
data.tar.gz: 8382bf35f0ea16e4d003a1741e1d86045c3b0326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24cb97a76b65e607865ce95de0c1673be7e34e1d06d00068afe289e6f7d971a333f50e39ac8e358a8909949d6898ce05de8f13b4b16efa056807a7d97435976f
|
7
|
+
data.tar.gz: 552da6fe168846802360c8e50ac40f7903d0d8c8618d2d84a5658b01825b55150a6fe18a185be8a7de6dc93e23ec62b6f31287269261bc5a3ed43b48a6510e16
|
@@ -43,7 +43,11 @@ module ActiveAdminVersioning
|
|
43
43
|
private
|
44
44
|
|
45
45
|
def enabled_paper_trail?
|
46
|
-
config.resource_class.
|
46
|
+
if config.resource_class.respond_to?(:paper_trail)
|
47
|
+
config.resource_class.paper_trail.try(:enabled?)
|
48
|
+
else
|
49
|
+
config.resource_class.try(:paper_trail_enabled_for_model?)
|
50
|
+
end
|
47
51
|
end
|
48
52
|
end
|
49
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiyuki Hirano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.6.10
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Good for auditing or versioning for Active Admin
|