paper_trail 7.1.1 → 7.1.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: b20c374ebdbecda6c44ebd19684b08e3794fb817
4
- data.tar.gz: 5cb2263ddd0edef7d5bd015847c7c255ec9a441a
3
+ metadata.gz: 8348cc6bbebab912e63f2c1b3fdcbc97601afd9c
4
+ data.tar.gz: f9ba8eabe4c4367c8f4f5341ef18c97612fc0130
5
5
  SHA512:
6
- metadata.gz: '08c560d6bd32525a95c7028759de995adeb0614003dc92170806f310defd525dc613b7802488a5c6de00443c9d842581f5eb78013aae55cdbf9f6e1ef63a4ef3'
7
- data.tar.gz: 1ed2bf46d37cc5a511286a4dbf073aa42ce927c566b8d9ab62e7d824da6bd26ecbc0d39f65696988d75fca6b46684c5aa35af9beefa41362e6b6f79dbf4e6d73
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
- belongs_to :item, polymorphic: true
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
@@ -7,7 +7,7 @@ module PaperTrail
7
7
  module VERSION
8
8
  MAJOR = 7
9
9
  MINOR = 1
10
- TINY = 1
10
+ TINY = 2
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".").freeze
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.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-18 00:00:00.000000000 Z
13
+ date: 2017-08-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord