effective_logging 3.0.2 → 3.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c92ea369d5e7b887728bf0291ae1646927cec17e34291a6f992113974709d251
4
- data.tar.gz: c548c740c30f16808a9a4c3819de0e59f1c13f19a2d0e3c4731d98bde5a24554
3
+ metadata.gz: d2f1d3b5334960d4d20ce576be03fccb16f57a0420e459748a0a371eccfd96bc
4
+ data.tar.gz: a295c1afe493077e80cee235dec6d53135a1880dd1e9583ee08f7582fefe6caa
5
5
  SHA512:
6
- metadata.gz: fdbe98db9ef7b04d6b026fb2a440fe190836f971af7415c32b7ad653f35575a0bc1c0e635e5a9787d4a7e1a61dc9184741ca6af4615bd1ab594139720a1d9675
7
- data.tar.gz: fa25ce65060c2c38f575b90378da8962e6c53ab24708cbfdbd56b5ab13040c4c83b6ff69311ccf02cdc8919d5e9e4431ad55673260d865eb14d274067a941e5a
6
+ metadata.gz: a458cb0b5536e73ffd77cb820a5864490475364629626e546ac335a57fcf338b5d238671145786f02c28758ed1f731bd38fd7845cf708a6de0cb1a0b3e9b234e
7
+ data.tar.gz: 946d224526dc50a35e6f0b344c706c296283febfed782080d4b86d787efb689c51478e2f7f9044c2545f8a51b28c225fba127e788bd8bc05e13b0ffdb313cf9c
@@ -8,12 +8,12 @@ module Effective
8
8
  attr_accessor :prev_log
9
9
 
10
10
  # Self-Referencing relationship
11
- belongs_to :parent, class_name: 'Effective::Log', counter_cache: true
11
+ belongs_to :parent, class_name: 'Effective::Log', counter_cache: true, optional: true
12
12
  has_many :logs, class_name: 'Effective::Log', foreign_key: :parent_id
13
13
 
14
14
  belongs_to :user
15
15
 
16
- belongs_to :changes_to, polymorphic: true # This is the log_changes to: option
16
+ belongs_to :changes_to, polymorphic: true, optional: true # This is the log_changes to: option
17
17
  belongs_to :associated, polymorphic: true
18
18
 
19
19
  serialize :details, Hash
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '3.0.2'.freeze
2
+ VERSION = '3.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2019-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails