paper_trail 7.1.1 → 7.1.2
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/lib/paper_trail/version_concern.rb +5 -1
- data/lib/paper_trail/version_number.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8348cc6bbebab912e63f2c1b3fdcbc97601afd9c
|
|
4
|
+
data.tar.gz: f9ba8eabe4c4367c8f4f5341ef18c97612fc0130
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 678e800a0071cc8c8ee8d3213815deefe39cc9e3b975a8d131abe993c79a1002e32fee2286e22d1d2391c22b572e79400e825425ec164ae3a05c0f6a0b2bd7e5
|
|
7
|
+
data.tar.gz: 2cc519461492db757e98efb8038a776d6d649f891a2cce58367ab67140701d19cff50aea37fb2b0c975f63f8d7d435f1e76729e3d9a648165b66b46757ac20d8
|
|
@@ -12,7 +12,11 @@ module PaperTrail
|
|
|
12
12
|
extend ::ActiveSupport::Concern
|
|
13
13
|
|
|
14
14
|
included do
|
|
15
|
-
|
|
15
|
+
if ActiveRecord.gem_version >= Gem::Version.new("5.0")
|
|
16
|
+
belongs_to :item, polymorphic: true, optional: true
|
|
17
|
+
else
|
|
18
|
+
belongs_to :item, polymorphic: true
|
|
19
|
+
end
|
|
16
20
|
|
|
17
21
|
# Since the test suite has test coverage for this, we want to declare
|
|
18
22
|
# the association when the test suite is running. This makes it pass when
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paper_trail
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.1.
|
|
4
|
+
version: 7.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Stewart
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-08-
|
|
13
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|