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: 39f10e57332f28066ce493ca546d6ca9da6c167b
4
- data.tar.gz: 57ce8e063641a9a0ea3b88d9b6c24cd4a2ee3bfd
3
+ metadata.gz: 866084e70be46ebf80c76fb77129c4ee091511b8
4
+ data.tar.gz: 8382bf35f0ea16e4d003a1741e1d86045c3b0326
5
5
  SHA512:
6
- metadata.gz: bd97dcf297f493247f18ea5afad3e687aea38e826d66259de5346c7b6d3709041cec22a57f5df141dedc94f7f9ebf0d9aeb97a7a8329af77b6d3621aa5f5570a
7
- data.tar.gz: ecdfd7fe1f04e5dc59d991c2abdb161b6dfa512a8712fa42ab7f51e613059c63756d495a1d3954e6491d2379331c9df742045a34574465f6c5808226cad445c6
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.try(:paper_trail).try(:enabled?) || config.resource_class.try(:paper_trail_enabled_for_model?)
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
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminVersioning
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  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.1
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: 2016-12-27 00:00:00.000000000 Z
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.5.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